<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/16215">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">scheduler_trx.c: cast ptrdiff value to fix printf format<br><br>On an ARM toolchain:<br>scheduler_trx.c:294:3: warning: format '%ld' expects argument of type 'long int', but argument 10 has type 'int'<br><br>Let's cast it to long int to make sure correct size is applied in all<br>platforms.<br><br>Change-Id: I701b3dbc4e84db21cf02305d374b0df731e70313<br>---<br>M src/osmo-bts-trx/scheduler_trx.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/15/16215/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c</span><br><span>index b54c35b..dea3345 100644</span><br><span>--- a/src/osmo-bts-trx/scheduler_trx.c</span><br><span>+++ b/src/osmo-bts-trx/scheduler_trx.c</span><br><span>@@ -292,7 +292,7 @@</span><br><span>     /* check validity of message */</span><br><span>      if (rc < 0) {</span><br><span>             LOGL1S(DL1P, LOGL_FATAL, l1t, tn, chan, fn, "Prim invalid length, please FIX! "</span><br><span style="color: hsl(0, 100%, 40%);">-                       "(len=%ld)\n", msg->tail - msg->l2h);</span><br><span style="color: hsl(120, 100%, 40%);">+                 "(len=%ld)\n", (long)msg->tail - msg->l2h);</span><br><span>          /* free message */</span><br><span>           msgb_free(msg);</span><br><span>              goto no_msg;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/16215">change 16215</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-bts/+/16215"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I701b3dbc4e84db21cf02305d374b0df731e70313 </div>
<div style="display:none"> Gerrit-Change-Number: 16215 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>