Udpdump: Fix g_debug() for ssize_t buflen

Using %lu for ssize_t throws an error. This commit change it to %zd.

Change-Id: I19ae72fe0836424bcb93e912e9b1757df4ae5fb1
Reviewed-on: https://code.wireshark.org/review/17900
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
Uli Heilmeier 2016-09-24 11:03:53 +02:00 committed by Dario Lombardo
parent 989dcef317
commit ca232b1d12
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ static int dump_packet(const char* proto_name, const guint16 listenport, const c
NULL
};
g_debug("Incoming packet from %s:%u, size: %lu", ws_inet_ntop4(&clientaddr.sin_addr.s_addr,
g_debug("Incoming packet from %s:%u, size: %zd", ws_inet_ntop4(&clientaddr.sin_addr.s_addr,
srcaddr, INET_ADDRSTRLEN), ntohs(clientaddr.sin_port), buflen);
pinfo.net_src.type = AT_IPv4;