laforge has submitted this change. (
https://gerrit.osmocom.org/c/osmo-bts/+/16215 )
Change subject: scheduler_trx.c: cast ptrdiff value to fix printf format
......................................................................
scheduler_trx.c: cast ptrdiff value to fix printf format
On an ARM toolchain:
scheduler_trx.c:294:3: warning: format '%ld' expects argument of type 'long
int', but argument 10 has type 'int'
Let's cast it to long int to make sure correct size is applied in all
platforms.
Change-Id: I701b3dbc4e84db21cf02305d374b0df731e70313
---
M src/osmo-bts-trx/scheduler_trx.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
laforge: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index b54c35b..07ee9da 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -292,7 +292,7 @@
/* check validity of message */
if (rc < 0) {
LOGL1S(DL1P, LOGL_FATAL, l1t, tn, chan, fn, "Prim invalid
length, please FIX! "
- "(len=%ld)\n", msg->tail - msg->l2h);
+ "(len=%ld)\n", (long)(msg->tail - msg->l2h));
/* free message */
msgb_free(msg);
goto no_msg;
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/16215
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I701b3dbc4e84db21cf02305d374b0df731e70313
Gerrit-Change-Number: 16215
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged