summaryrefslogtreecommitdiffstats
path: root/slirp/tcp_output.c
diff options
context:
space:
mode:
authorStefan Weil2015-08-29 09:12:35 +0200
committerJason Wang2015-11-12 06:48:36 +0100
commitecc804cac31cec6cb90feaa459503afda8b38d09 (patch)
tree4b3dac078325c604488dd346c6a24208289c0c6a /slirp/tcp_output.c
parentMerge remote-tracking branch 'remotes/cohuck/tags/s390x-20151111' into staging (diff)
downloadqemu-ecc804cac31cec6cb90feaa459503afda8b38d09.tar.gz
qemu-ecc804cac31cec6cb90feaa459503afda8b38d09.tar.xz
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/tcp_output.c')
-rw-r--r--slirp/tcp_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/tcp_output.c b/slirp/tcp_output.c
index 8aa3d90470..fafca58a0a 100644
--- a/slirp/tcp_output.c
+++ b/slirp/tcp_output.c
@@ -66,7 +66,7 @@ tcp_output(struct tcpcb *tp)
int idle, sendalot;
DEBUG_CALL("tcp_output");
- DEBUG_ARG("tp = %lx", (long )tp);
+ DEBUG_ARG("tp = %p", tp);
/*
* Determine length of data that should be transmitted,