aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-04-12 21:54:48 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-04-12 21:54:48 +0200
commit666fec7ff23e125730d7e13aa6d68112cde082de (patch)
treec2eab1604d0bf840d5cb06fae69aea0474205d82 /src/common
parent76aa95453f6918e0e79b9959ad4561787e33196d (diff)
misc: Fix compiler warning about printing a ptrdiff
Use 't' modifier for pointer diff in the printf statement. oml.c: In function ‘oml_rx_set_bts_attr’: oml.c:403:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 9 has type ‘int’ [-Wformat]
Diffstat (limited to 'src/common')
-rw-r--r--src/common/oml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index 7fe922e8..56d00c5c 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -400,7 +400,7 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg)
uint16_t arfcn = ntohs(*value);
LOGP(DOML, LOGL_NOTICE, "MSG: %s\n", osmo_hexdump(msgb_l3(msg), msgb_l3len(msg)));
- LOGP(DOML, LOGL_NOTICE, "L3=%p, VAL=%p, DIF=%lu\n", msgb_l3(msg), value,
+ LOGP(DOML, LOGL_NOTICE, "L3=%p, VAL=%p, DIF=%tu\n", msgb_l3(msg), value,
(void *)value - (void *) msgb_l3(msg));
if (arfcn > 1024) {