mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user