From ecc804cac31cec6cb90feaa459503afda8b38d09 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 29 Aug 2015 09:12:35 +0200 Subject: slirp: Fix type casts and format strings in debug code Casting pointers to long won't work on 64 bit Windows. It is not needed with the right format strings. Signed-off-by: Stefan Weil Signed-off-by: Jason Wang --- slirp/udp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'slirp/udp.c') diff --git a/slirp/udp.c b/slirp/udp.c index f77e00f..fee13b4 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -72,7 +72,7 @@ udp_input(register struct mbuf *m, int iphlen) struct socket *so; DEBUG_CALL("udp_input"); - DEBUG_ARG("m = %lx", (long)m); + DEBUG_ARG("m = %p", m); DEBUG_ARG("iphlen = %d", iphlen); /* @@ -241,8 +241,8 @@ int udp_output2(struct socket *so, struct mbuf *m, int error = 0; DEBUG_CALL("udp_output"); - DEBUG_ARG("so = %lx", (long)so); - DEBUG_ARG("m = %lx", (long)m); + DEBUG_ARG("so = %p", so); + DEBUG_ARG("m = %p", m); DEBUG_ARG("saddr = %lx", (long)saddr->sin_addr.s_addr); DEBUG_ARG("daddr = %lx", (long)daddr->sin_addr.s_addr); -- cgit v1.1