NAT44: fix removal of LB static mappings with same local address and port pair (VPP...
[vpp.git] / src / vppinfra / std-formats.c
index a11d758..832dbb5 100644 (file)
@@ -112,7 +112,7 @@ format_hex_bytes (u8 * s, va_list * va)
 u8 *
 format_white_space (u8 * s, va_list * va)
 {
-  uword n = va_arg (*va, uword);
+  u32 n = va_arg (*va, u32);
   while (n-- > 0)
     vec_add1 (s, ' ');
   return s;
@@ -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);