summary refs log tree commit diff stats
path: root/slirp/sbuf.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-08-29 09:12:35 +0200
committerJason Wang <jasowang@redhat.com>2015-11-12 13:48:36 +0800
commitecc804cac31cec6cb90feaa459503afda8b38d09 (patch)
tree4b3dac078325c604488dd346c6a24208289c0c6a /slirp/sbuf.c
parent31e49ac192f782d594bbd04070fe79e800b7813f (diff)
downloadfocaccia-qemu-ecc804cac31cec6cb90feaa459503afda8b38d09.tar.gz
focaccia-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/sbuf.c')
-rw-r--r--slirp/sbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/sbuf.c b/slirp/sbuf.c
index 08ec2b4f44..b8c3db744f 100644
--- a/slirp/sbuf.c
+++ b/slirp/sbuf.c
@@ -72,8 +72,8 @@ sbappend(struct socket *so, struct mbuf *m)
 	int ret = 0;
 
 	DEBUG_CALL("sbappend");
-	DEBUG_ARG("so = %lx", (long)so);
-	DEBUG_ARG("m = %lx", (long)m);
+	DEBUG_ARG("so = %p", so);
+	DEBUG_ARG("m = %p", m);
 	DEBUG_ARG("m->m_len = %d", m->m_len);
 
 	/* Shouldn't happen, but...  e.g. foreign host closes connection */