summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-03-02 09:42:44 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2015-03-02 09:42:44 +0100
commitaf454f9b7c3930a7900e60a7fb608b7de11852aa (patch)
treeb426e6222ab0a86f694668da7af66397f5bb6b9e /sysdep/unix/io.c
parent8bcb5fb1e8a0718f88f99cde2f5b5a3bae5c4451 (diff)
Fixes bug in debug dumps
Using 'dump sockets' in IPv6 mode caused crash due to mismatched format string. Thanks to Pavel Tvrdik for noticing it.
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index bbb87ca9..b4fec9cd 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -1106,7 +1106,7 @@ sk_dump(resource *r)
sock *s = (sock *) r;
static char *sk_type_names[] = { "TCP<", "TCP>", "TCP", "UDP", NULL, "IP", NULL, "MAGIC", "UNIX<", "UNIX", "DEL!" };
- debug("(%s, ud=%p, sa=%08x, sp=%d, da=%08x, dp=%d, tos=%d, ttl=%d, if=%s)\n",
+ debug("(%s, ud=%p, sa=%I, sp=%d, da=%I, dp=%d, tos=%d, ttl=%d, if=%s)\n",
sk_type_names[s->type],
s->data,
s->saddr,