aboutsummaryrefslogtreecommitdiff
path: root/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
commitf75c02cc3f8bd711ddbecaf57aee9b30b50f28c7 (patch)
tree8bf382825e81cf1a74aaa45ecb96b26cd23d5968 /sbuf.c
parentc91a2b71b4fd62dfa8ca98b217334b946aa69ee3 (diff)
downloadslirp-f75c02cc3f8bd711ddbecaf57aee9b30b50f28c7.zip
slirp-f75c02cc3f8bd711ddbecaf57aee9b30b50f28c7.tar.gz
slirp-f75c02cc3f8bd711ddbecaf57aee9b30b50f28c7.tar.bz2
slirp: Fix type casts and format strings in debug codev2.5.1.1v2.5.1v2.5.0-rc4v2.5.0-rc3v2.5.0-rc2v2.5.0-rc1v2.5.0-rc0v2.5.0
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 'sbuf.c')
-rw-r--r--sbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbuf.c b/sbuf.c
index 02028c4..51d7a13 100644
--- a/sbuf.c
+++ b/sbuf.c
@@ -69,8 +69,8 @@ void 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 */