aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-02-03 09:18:51 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-02-03 09:18:51 +0100
commit757971ade86940e43b873f9bf6a9059d854bb04b (patch)
treeaae475000a2b7afecbac9d559d0a455e82c96463
parentb281e4e6f4245749b3adb04bc86a962a2bbff9a9 (diff)
mgcp: Use the length modifier for the size_t in the printf
Should fix on AMD64: mgcp_test.c: In function ‘sendto’: mgcp_test.c:318:10: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat]
-rw-r--r--openbsc/tests/mgcp/mgcp_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c
index d1c128402..b1bbb7f3a 100644
--- a/openbsc/tests/mgcp/mgcp_test.c
+++ b/openbsc/tests/mgcp/mgcp_test.c
@@ -313,7 +313,7 @@ ssize_t sendto(int sockfd, const void *buf, size_t len, int flags,
real_sendto = dlsym(RTLD_NEXT, "sendto");
if (len == 1 && ((const char *)buf)[0] == MGCP_DUMMY_LOAD ) {
- fprintf(stderr, "Dummy packet to 0x%08x:%d, msg length %d\n%s\n\n",
+ fprintf(stderr, "Dummy packet to 0x%08x:%d, msg length %zu\n%s\n\n",
dest_host, dest_port,
len, osmo_hexdump(buf, len));
dummy_packets += 1;