ipsec: remove redundant code in ipsec_tun_in trace 35/41535/2
authorGarvit <[email protected]>
Mon, 26 Aug 2024 06:43:10 +0000 (12:13 +0530)
committerFan Zhang <[email protected]>
Mon, 9 Sep 2024 12:56:10 +0000 (12:56 +0000)
This patch removes redundant sa index value in
format_ipsec_tun_protect_input_trace() as sa index value already added
by format_ipsec4_tunnel_kv().

Type: fix

Change-Id: I7834bda57ba0f7cfe5084b671f6f7da0749ba64d
Signed-off-by: Garvit <[email protected]>
src/vnet/ipsec/ipsec_tun_in.c

index c82de3e..3dde084 100644 (file)
@@ -60,8 +60,8 @@ format_ipsec_tun_protect_input_trace (u8 * s, va_list * args)
     s = format (s, "IPSec: %U seq %u",
                format_ipsec6_tunnel_kv, &t->kv6, t->seq);
   else
-    s = format (s, "IPSec: %U seq %u sa %d",
-               format_ipsec4_tunnel_kv, &t->kv4, t->seq);
+    s =
+      format (s, "IPSec: %U seq %u", format_ipsec4_tunnel_kv, &t->kv4, t->seq);
   return s;
 }