<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18596">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">abis_nm: cosmetic: use sizeof() for printing buffer size<br><br>Change-Id: I14be343578a64c1e4ce8ce4d28da9008eb309f3c<br>---<br>M src/osmo-bsc/abis_nm.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/96/18596/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c</span><br><span>index a0aead8..f600801 100644</span><br><span>--- a/src/osmo-bsc/abis_nm.c</span><br><span>+++ b/src/osmo-bsc/abis_nm.c</span><br><span>@@ -571,8 +571,8 @@</span><br><span> </span><br><span>           /* log potential BTS feature vector overflow */</span><br><span>              if (len > sizeof(bts->_features_data)) {</span><br><span style="color: hsl(0, 100%, 40%);">-                  LOGP(DNM, LOGL_NOTICE, "BTS%u Get Attributes Response: feature vector is truncated to %u bytes\n",</span><br><span style="color: hsl(0, 100%, 40%);">-                         bts->nr, MAX_BTS_FEATURES/8);</span><br><span style="color: hsl(120, 100%, 40%);">+                 LOGP(DNM, LOGL_NOTICE, "BTS%u Get Attributes Response: feature vector is truncated to %zu bytes\n",</span><br><span style="color: hsl(120, 100%, 40%);">+                      bts->nr, sizeof(bts->_features_data));</span><br><span>            }</span><br><span> </span><br><span>                /* check that max. expected BTS attribute is above given feature vector length */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18596">change 18596</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-bsc/+/18596"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I14be343578a64c1e4ce8ce4d28da9008eb309f3c </div>
<div style="display:none"> Gerrit-Change-Number: 18596 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>