diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-12-03 18:56:39 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-12-03 18:56:39 +0100 |
commit | bb3c7c6d22c48cd78b4c5b77a78ff1b92adca053 (patch) | |
tree | 391335a62136db4eaac11d2e101002dade52c757 | |
parent | 69fbf9a25190e0149dcc31e830e952c586fe2024 (diff) | |
download | bird-bb3c7c6d22c48cd78b4c5b77a78ff1b92adca053.tar bird-bb3c7c6d22c48cd78b4c5b77a78ff1b92adca053.zip |
Fixes some log messages.
-rw-r--r-- | proto/ospf/lsack.c | 6 | ||||
-rw-r--r-- | proto/ospf/lsreq.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c index ba9a918..a218930 100644 --- a/proto/ospf/lsack.c +++ b/proto/ospf/lsack.c @@ -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; } diff --git a/proto/ospf/lsreq.c b/proto/ospf/lsreq.c index 6785644..49d3894 100644 --- a/proto/ospf/lsreq.c +++ b/proto/ospf/lsreq.c @@ -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)); } |