]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes some log messages.
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 3 Dec 2009 17:56:39 +0000 (18:56 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 3 Dec 2009 17:56:39 +0000 (18:56 +0100)
proto/ospf/lsack.c
proto/ospf/lsreq.c

index ba9a918a166de83e31af20a2181078c20d9bfbe1..a2189304954c8a1c7dcf9bade5135970f9f4dc72 100644 (file)
@@ -173,11 +173,11 @@ ospf_lsack_receive(struct ospf_packet *ps_i, struct ospf_iface *ifa,
        continue;
 
       OSPF_TRACE(D_PACKETS, "Strange LS acknoledgement from %I", n->ip);
-      OSPF_TRACE(D_PACKETS, "Id: %R, Rt: %R, Type: %u",
+      OSPF_TRACE(D_PACKETS, "Id: %R, Rt: %R, Type: 0x%04x",
                 lsa.id, lsa.rt, lsa.type);
-      OSPF_TRACE(D_PACKETS, "I have: Age: %4u, Seqno: 0x%08x, Sum: %u",
+      OSPF_TRACE(D_PACKETS, "I have: Age: %4u, Seqno: 0x%08x, Sum: 0x%04x",
                 en->lsa.age, en->lsa.sn, en->lsa.checksum);
-      OSPF_TRACE(D_PACKETS, "He has: Age: %4u, Seqno: 0x%08x, Sum: %u",
+      OSPF_TRACE(D_PACKETS, "He has: Age: %4u, Seqno: 0x%08x, Sum: 0x%04x",
                 lsa.age, lsa.sn, lsa.checksum);
       continue;
     }
index 6785644245ed4b1207a6f1326a5a7f05ddc5d354..49d3894420ac7a1f844570aa10569f07b2525713 100644 (file)
@@ -28,7 +28,7 @@ static void ospf_dump_lsreq(struct proto *p, struct ospf_lsreq_packet *pkt)
     sizeof(struct ospf_lsreq_header);
 
   for (i = 0; i < j; i++)
-    log(L_TRACE "%s:     LSR      Id: %R, Rt: %R, Type: 0x%x", p->name,
+    log(L_TRACE "%s:     LSR      Id: %R, Rt: %R, Type: 0x%04x", p->name,
        htonl(pkt->lsh[i].id), htonl(pkt->lsh[i].rt), htonl(pkt->lsh[i].type));
 }