diff options
author | Damjan Marion <damarion@cisco.com> | 2018-02-17 14:05:08 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-02-18 16:26:39 +0000 |
commit | 1e33663e25a03cc92458eae55a6e82940916153b (patch) | |
tree | 3c5cc4cdd1ef2cffb1998a5b8e635e1cdfc3f50c /src | |
parent | ebbaf55e09cfe2a31d4bf2b2f6bc49eeb4e1d528 (diff) |
fix format_hexdump
Change-Id: I9710be2e722d716e22d989b3417fb49d2db0848a
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vppinfra/std-formats.c | 3 |
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); |