diff options
author | Stefan Weil <sw@weilnetz.de> | 2015-08-29 09:12:35 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2015-11-12 13:48:36 +0800 |
commit | ecc804cac31cec6cb90feaa459503afda8b38d09 (patch) | |
tree | 4b3dac078325c604488dd346c6a24208289c0c6a /slirp/ip_output.c | |
parent | 31e49ac192f782d594bbd04070fe79e800b7813f (diff) | |
download | qemu-ecc804cac31cec6cb90feaa459503afda8b38d09.tar.gz qemu-ecc804cac31cec6cb90feaa459503afda8b38d09.tar.bz2 qemu-ecc804cac31cec6cb90feaa459503afda8b38d09.zip |
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 <sw@weilnetz.de>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'slirp/ip_output.c')
-rw-r--r-- | slirp/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/ip_output.c b/slirp/ip_output.c index c82830fe7d..1254d0d585 100644 --- a/slirp/ip_output.c +++ b/slirp/ip_output.c @@ -60,8 +60,8 @@ ip_output(struct socket *so, struct mbuf *m0) int len, off, error = 0; DEBUG_CALL("ip_output"); - DEBUG_ARG("so = %lx", (long)so); - DEBUG_ARG("m0 = %lx", (long)m0); + DEBUG_ARG("so = %p", so); + DEBUG_ARG("m0 = %p", m0); ip = mtod(m, struct ip *); /* |