OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0a1e32
)
slirp: Remove wrong type casts ins debug statements
author
Stefan Weil
<sw@weilnetz.de>
Tue, 4 Sep 2012 21:20:35 +0000
(23:20 +0200)
committer
Jan Kiszka
<jan.kiszka@siemens.com>
Thu, 13 Sep 2012 10:38:14 +0000
(12:38 +0200)
The type casts of pointers to long are not allowed
when sizeof(pointer) != sizeof(long).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
slirp/tcp_subr.c
patch
|
blob
|
history
diff --git
a/slirp/tcp_subr.c
b/slirp/tcp_subr.c
index
025b374
..
5890d7a
100644
(file)
--- a/
slirp/tcp_subr.c
+++ b/
slirp/tcp_subr.c
@@
-114,9
+114,9
@@
tcp_respond(struct tcpcb *tp, struct tcpiphdr *ti, struct mbuf *m,
int win = 0;
DEBUG_CALL("tcp_respond");
- DEBUG_ARG("tp = %
lx", (long)
tp);
- DEBUG_ARG("ti = %
lx", (long)
ti);
- DEBUG_ARG("m = %
lx", (long)
m);
+ DEBUG_ARG("tp = %
p",
tp);
+ DEBUG_ARG("ti = %
p",
ti);
+ DEBUG_ARG("m = %
p",
m);
DEBUG_ARG("ack = %u", ack);
DEBUG_ARG("seq = %u", seq);
DEBUG_ARG("flags = %x", flags);