From 666fec7ff23e125730d7e13aa6d68112cde082de Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 12 Apr 2012 21:54:48 +0200 Subject: misc: Fix compiler warning about printing a ptrdiff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] --- src/common/oml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/oml.c') 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) { -- cgit v1.2.3