forked from osmocom/wireshark
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:
parent
989dcef317
commit
ca232b1d12
|
@ -201,7 +201,7 @@ static int dump_packet(const char* proto_name, const guint16 listenport, const c
|
||||||
NULL
|
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);
|
srcaddr, INET_ADDRSTRLEN), ntohs(clientaddr.sin_port), buflen);
|
||||||
|
|
||||||
pinfo.net_src.type = AT_IPv4;
|
pinfo.net_src.type = AT_IPv4;
|
||||||
|
|
Loading…
Reference in New Issue