interface: fix format_vnet_interface_output_trace 66/37666/3
authorluoyaozu <luoyaozu@foxmail.com>
Wed, 16 Nov 2022 08:26:53 +0000 (16:26 +0800)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 15 Dec 2022 13:58:43 +0000 (13:58 +0000)
format vlib_buffer_t::flags into interface output trace

Type: fix

Signed-off-by: luoyaozu <luoyaozu@foxmail.com>
Change-Id: Icb48a6d3a7ebdff7a3d42efe62723b0f0f1ea507

src/vnet/interface_output.c

index a19bbb8..28c5268 100644 (file)
@@ -85,9 +85,8 @@ format_vnet_interface_output_trace (u8 * s, va_list * va)
       else
        {
          si = vnet_get_sw_interface (vnm, t->sw_if_index);
-         s =
-           format (s, "%U ", format_vnet_sw_interface_name, vnm, si,
-                   t->flags);
+         s = format (s, "%U flags 0x%08x", format_vnet_sw_interface_name, vnm,
+                     si, t->flags);
        }
       s =
        format (s, "\n%U%U", format_white_space, indent,