]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Use '%I' instead of dirty address printing hacks.
authorMartin Mares <mj@ucw.cz>
Wed, 17 Jun 1998 14:36:02 +0000 (14:36 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 17 Jun 1998 14:36:02 +0000 (14:36 +0000)
nest/iface.c
nest/rt-attr.c
nest/rt-table.c

index 41cb05bbead04a8c60e1748adc7159cb2691ef27..591733a1a8522149cc69f8eff27d9032044e9432 100644 (file)
@@ -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
index d6a57235a8f98a72491cfbc0bd46ce66dbf5ecf5..fa92d66505d15b4c66aad7afdf299ed9ad511a55 100644 (file)
@@ -144,9 +144,9 @@ rta_dump(rta *a)
     debug(" EXT");
   if (a->flags & RTF_TAGGED)
     debug(" TAG");
-  debug(" <-%08x", _I(a->from));
+  debug(" <-%I", a->from);
   if (a->dest == RTD_ROUTER)
-    debug(" ->%08x", _I(a->gw));
+    debug(" ->%I", a->gw);
   if (a->dest == RTD_DEVICE || a->dest == RTD_ROUTER)
     debug(" [%s]", a->iface->name);
 }
index 249cbbf6f28900612d46eb693ccf1ea2ca3259b9..a45b58dacdb56554a146ea0456534b4de77ea5b8 100644 (file)
@@ -185,7 +185,7 @@ void
 rte_dump(net *n, rte *e)
 {
   if (n)
-    debug("%08x/%2d ", _I(n->n.prefix), n->n.pxlen);
+    debug("%1I/%2d ", n->n.prefix, n->n.pxlen);
   debug("PF=%02x pref=%d lm=%d ", e->pflags, e->pref, e->lastmod);
   rta_dump(e->attrs);
   if (e->flags & REF_CHOSEN)