Udpdump: Fix g_debug() for ssize_t buflen
authorUli Heilmeier <uh@heilmeier.eu>
Sat, 24 Sep 2016 09:03:53 +0000 (11:03 +0200)
committerDario Lombardo <lomato@gmail.com>
Sat, 24 Sep 2016 11:56:07 +0000 (11:56 +0000)
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>
extcap/udpdump.c

index ffe23657dee1d717439a0e9fc27db3da30bd57c2..1ff4e4b513ed9206aa4245fec6387a4788d33c94 100644 (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;