aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-02-17 14:05:08 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2018-02-18 16:26:39 +0000
commit1e33663e25a03cc92458eae55a6e82940916153b (patch)
tree3c5cc4cdd1ef2cffb1998a5b8e635e1cdfc3f50c
parentebbaf55e09cfe2a31d4bf2b2f6bc49eeb4e1d528 (diff)
fix format_hexdump
Change-Id: I9710be2e722d716e22d989b3417fb49d2db0848a Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/vppinfra/std-formats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vppinfra/std-formats.c b/src/vppinfra/std-formats.c
index debf1941791..832dbb557f7 100644
--- a/src/vppinfra/std-formats.c
+++ b/src/vppinfra/std-formats.c
@@ -313,7 +313,8 @@ format_hexdump (u8 * s, va_list * args)
if (vec_len (line_hex))
s = format (s, "%U%05x: %v[%v]",
- format_white_space, indent, index, line_hex, line_str);
+ format_white_space, index ? indent : 0,
+ index, line_hex, line_str);
vec_free (line_hex);
vec_free (line_str);