aboutsummaryrefslogtreecommitdiff
path: root/mbuf.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 /mbuf.c
parentc91a2b71b4fd62dfa8ca98b217334b946aa69ee3 (diff)
downloadslirp-2.5.1.1.zip
slirp-2.5.1.1.tar.gz
slirp-2.5.1.1.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 'mbuf.c')
-rw-r--r--mbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbuf.c b/mbuf.c
index bbd5f0d..aa4e133 100644
--- a/mbuf.c
+++ b/mbuf.c
@@ -93,14 +93,14 @@ struct mbuf *m_get(Slirp *slirp)
m->arp_requested = false;
m->expiration_date = (uint64_t)-1;
end_error:
- DEBUG_ARG("m = %lx", (long)m);
+ DEBUG_ARG("m = %p", m);
return m;
}
void m_free(struct mbuf *m)
{
DEBUG_CALL("m_free");
- DEBUG_ARG("m = %lx", (long)m);
+ DEBUG_ARG("m = %p", m);
if (m) {
/* Remove from m_usedlist */
@@ -212,7 +212,7 @@ struct mbuf *dtom(Slirp *slirp, void *dat)
struct mbuf *m;
DEBUG_CALL("dtom");
- DEBUG_ARG("dat = %lx", (long)dat);
+ DEBUG_ARG("dat = %p", dat);
/* bug corrected for M_EXT buffers */
for (m = slirp->m_usedlist.m_next; m != &slirp->m_usedlist; m = m->m_next) {