summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEverton Marques <everton.marques@gmail.com>2010-03-17 10:51:34 -0300
committerDavid Lamparter <equinox@opensourcerouting.org>2015-02-04 06:07:53 +0100
commitfa2e1ee255c6a3be76f74b07cb441c34d4b2583f (patch)
tree8562b81d3dbdb1459a8e789e32056fe8d562b56a
parentff752d431675caed78e7b460b2d9a4845e5b6a73 (diff)
downloadquagga-fa2e1ee255c6a3be76f74b07cb441c34d4b2583f.tar.bz2
quagga-fa2e1ee255c6a3be76f74b07cb441c34d4b2583f.tar.xz
[pim] Uniform format for commands "debug pim packet-dump" and "test pim receive dump"
-rw-r--r--pimd/pim_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_util.c b/pimd/pim_util.c
index d97b599c..a7e8234e 100644
--- a/pimd/pim_util.c
+++ b/pimd/pim_util.c
@@ -141,7 +141,7 @@ void pim_pkt_dump(const char *label, const uint8_t *buf, int size)
int i = 0;
int j = 0;
- for (; i < size; ++i, j += 3) {
+ for (; i < size; ++i, j += 2) {
int left = sizeof(dump_buf) - j;
if (left < 4) {
if (left > 1) {
@@ -149,10 +149,10 @@ void pim_pkt_dump(const char *label, const uint8_t *buf, int size)
}
break;
}
- snprintf(dump_buf + j, left, " %02x", buf[i]);
+ snprintf(dump_buf + j, left, "%02x", buf[i]);
}
- zlog_debug("%s: pkt dump size=%d:%s",
+ zlog_debug("%s: pkt dump size=%d: %s",
label,
size,
dump_buf);