Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
IPIP and SIXRD tunnels create API needs table-IDs not fib-indexes
[vpp.git]
/
src
/
vppinfra
/
std-formats.c
diff --git
a/src/vppinfra/std-formats.c
b/src/vppinfra/std-formats.c
index
a11d758
..
da3c54c
100644
(file)
--- a/
src/vppinfra/std-formats.c
+++ b/
src/vppinfra/std-formats.c
@@
-112,7
+112,7
@@
format_hex_bytes (u8 * s, va_list * va)
u8 *
format_white_space (u8 * s, va_list * va)
{
u8 *
format_white_space (u8 * s, va_list * va)
{
- u
word n = va_arg (*va, uword
);
+ u
32 n = va_arg (*va, u32
);
while (n-- > 0)
vec_add1 (s, ' ');
return s;
while (n-- > 0)
vec_add1 (s, ' ');
return s;
@@
-253,7
+253,7
@@
unformat_memory_size (unformat_input_t * input, va_list * va)
}
/* Format c identifier: e.g. a_name -> "a name".
}
/* Format c identifier: e.g. a_name -> "a name".
- Wor
d
s for both vector names and null terminated c strings. */
+ Wor
k
s for both vector names and null terminated c strings. */
u8 *
format_c_identifier (u8 * s, va_list * va)
{
u8 *
format_c_identifier (u8 * s, va_list * va)
{
@@
-313,7
+313,8
@@
format_hexdump (u8 * s, va_list * args)
if (vec_len (line_hex))
s = format (s, "%U%05x: %v[%v]",
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);
vec_free (line_hex);
vec_free (line_str);