aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra')
-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);