diff options
author | Martin Mares <mj@ucw.cz> | 1998-06-17 14:36:02 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-06-17 14:36:02 +0000 |
commit | 962ba482fd7bba97cf13a96105503efff4dcb88a (patch) | |
tree | 78a9b7a31077b3c311710f56afa4572c4eaeb582 /nest/iface.c | |
parent | d997534f65903e8078efe2f8ceb19941692598f7 (diff) |
Use '%I' instead of dirty address printing hacks.
Diffstat (limited to 'nest/iface.c')
-rw-r--r-- | nest/iface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nest/iface.c b/nest/iface.c index 41cb05bb..591733a1 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -95,7 +95,7 @@ neigh_find(struct proto *p, ip_addr *a, unsigned flags) void neigh_dump(neighbor *n) { - debug("%p %08x ", n, _I(n->addr)); + debug("%p %I ", n, n->addr); if (n->iface) debug("%s ", n->iface->name); else @@ -129,7 +129,7 @@ neigh_if_up(struct iface *i) n->iface = i; n->sibling = i->neigh; i->neigh = n; - DBG("Waking up sticky neighbor %08x\n", _I(n->addr)); + DBG("Waking up sticky neighbor %I\n", n->addr); if (n->proto->neigh_notify) n->proto->neigh_notify(n); } @@ -143,7 +143,7 @@ neigh_if_down(struct iface *i) for(m=i->neigh; n = m;) { m = n->sibling; - DBG("Flushing neighbor %08x on %s\n", _I(n->addr), n->iface->name); + DBG("Flushing neighbor %I on %s\n", n->addr, n->iface->name); n->iface = NULL; if (n->proto->neigh_notify) n->proto->neigh_notify(n); @@ -185,7 +185,7 @@ if_dump(struct iface *i) if (i->flags & IF_IGNORE) debug(" IGN"); debug(" MTU=%d\n", i->mtu); - debug("\t%08x, net %08x/%-2d bc %08x -> %08x\n", _I(i->ip), _I(i->prefix), i->pxlen, _I(i->brd), _I(i->opposite)); + debug("\t%I, net %I/%-2d bc %I -> %I\n", i->ip, i->prefix, i->pxlen, i->brd, i->opposite); } void |