mirror of
https://gerrit.osmocom.org/osmo-gbproxy
synced 2024-08-21 18:36:25 +00:00
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:
parent
b3af066b24
commit
559d77365a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue