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]
This commit is contained in:
Holger Hans Peter Freyther 2014-02-03 09:18:51 +01:00
parent b3af066b24
commit 559d77365a

View file

@ -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;