]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix %<something>I format strings.
authorMartin Mares <mj@ucw.cz>
Sun, 19 Aug 2001 11:15:24 +0000 (11:15 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 19 Aug 2001 11:15:24 +0000 (11:15 +0000)
nest/rt-table.c
proto/ospf/dbdes.c
proto/ospf/neighbor.c
proto/ospf/ospf.c
proto/ospf/topology.c
proto/static/static.c

index e095a14fb2be221cb71edf2af6755a893752e402..d313dbcf7c139f655f69bb15ca7f0dfbed4a0237 100644 (file)
@@ -538,7 +538,7 @@ rte_dump(rte *e)
 {
   net *n = e->net;
   if (n)
-    debug("%1I/%2d ", n->n.prefix, n->n.pxlen);
+    debug("%-1I/%2d ", n->n.prefix, n->n.pxlen);
   else
     debug("??? ");
   debug("KF=%02x PF=%02x pref=%d lm=%d ", n->n.flags, e->pflags, e->pref, now-e->lastmod);
index d6aadb6fcac934d0e4cb1a5a56379b2af6e11fed..05099b6a4af2d25dc1b179b706abcd1d253a13d8 100644 (file)
@@ -88,7 +88,7 @@ ospf_dbdes_tx(struct ospf_neighbor *n)
            en=(struct top_hash_entry *)sn;
            htonlsah(&(en->lsa), lsa);
            DBG("Working on: %d\n", i);
-            DBG("\tX%01x %08I %08I %p\n", en->lsa.type, en->lsa.id,
+            DBG("\tX%01x %-1I %-1I %p\n", en->lsa.type, en->lsa.id,
               en->lsa.rt, en->lsa_body);
 
            if(sn==STAIL(n->ifa->oa->lsal))
index cbb3e5e129bb82c74625d7437999f5bf822df8ea..52a94db4fa1e800eaec091316a811e4e31b3ddd5 100644 (file)
@@ -545,6 +545,6 @@ ospf_sh_neigh_info(struct ospf_neighbor *n)
    if(n->rid==ifa->bdrid) pos="bdr  ";
    if(n->ifa->type==OSPF_IT_PTP) pos="ptp  ";
 
-   cli_msg(-1013,"%-18I\t%3u\t%s/%s\t%-5s\t%-18I\t%-10s",n->rid, n->priority,
+   cli_msg(-1013,"%-1I\t%3u\t%s/%s\t%-5s\t%-1I\t%-10s",n->rid, n->priority,
      ospf_ns[n->state], pos, etime, n->ip,ifa->iface->name);
 }
index 23e668d8beb3d731183bce856bc03371bb16c16f..7f48f01579211bc5ec4a5849ce7d897d38f0c958 100644 (file)
@@ -836,7 +836,7 @@ ospf_sh(struct proto *p)
       cli_msg(-1014,"\t\tArea networks:");
       WALK_LIST(anet, oa->net_list)
       {
-        cli_msg(-1014,"\t\t\t%18I/%u\t%s", anet->net, anet->mlen,
+        cli_msg(-1014,"\t\t\t%1I/%u\t%s", anet->net, anet->mlen,
           anet->hidden ? "Hidden" : "Advertise");
       }
     }
index f8a0d4ca7fff25a4a4c79d408be33e0b695a2ef0..2dfe3acf5aa5978f4ab1873856a0610f11d9176e 100644 (file)
@@ -629,7 +629,7 @@ ospf_top_dump(struct top_graph *f, struct proto *p)
       struct top_hash_entry *e = f->hash_table[i];
       while (e)
        {
-         OSPF_TRACE(D_EVENTS, "\t%1x %8I %8I %4u 0x%08x",
+         OSPF_TRACE(D_EVENTS, "\t%1x %-1I %-1I %4u 0x%08x",
            e->lsa.type, e->lsa.id,
             e->lsa.rt, e->lsa.age, e->lsa.sn);
          e = e->next;
index eb6c1c11cd3392782403eddd76d8ed376d39195d..c5324796b144f724ad6b345bd4685367cea84627 100644 (file)
@@ -150,7 +150,7 @@ static_neigh_notify(struct neighbor *n)
 static void
 static_dump_rt(struct static_route *r)
 {
-  debug("%16I/%2d: ", r->net, r->masklen);
+  debug("%-1I/%2d: ", r->net, r->masklen);
   switch (r->dest)
     {
     case RTD_ROUTER: