path: root/src
diff options
authorPau Espin Pedrol <pespin@sysmocom.de>2019-11-25 15:13:18 +0100
committerlaforge <laforge@osmocom.org>2019-11-27 00:19:30 +0000
commit0d8cd8ce39557f1aeb8e4174cfc01194573fdb92 (patch)
tree8a7f1868673a375cd8189e632f3be78f249a5808 /src
parent3cb61d902c932e564d1ab0f78b9ea36cc4aa9e7b (diff)
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
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index b54c35b5..07ee9da8 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -292,7 +292,7 @@ got_msg:
/* 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 */
goto no_msg;