From fb9d1ac843884aca79873577b53f6254e7933478 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Thu, 4 Aug 2022 20:36:45 +0500 Subject: vnet: fix format of deleted sw interfaces As similar 535364e90459566b603661c3dbe360c72f59ad71 is merged, printing possibly deleted interfaces by index only in all the rest cases. Type: improvement Signed-off-by: Vladislav Grishenko Change-Id: I4fa58b382c0279ff893523ba0188fdb9b09e10af --- src/vnet/dpo/l3_proxy_dpo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/vnet/dpo/l3_proxy_dpo.c') diff --git a/src/vnet/dpo/l3_proxy_dpo.c b/src/vnet/dpo/l3_proxy_dpo.c index 41156301a0e..f89554d775f 100644 --- a/src/vnet/dpo/l3_proxy_dpo.c +++ b/src/vnet/dpo/l3_proxy_dpo.c @@ -116,9 +116,8 @@ format_l3_proxy_dpo (u8 *s, va_list *ap) if (~0 != l3p->l3p_sw_if_index) { - return (format(s, "dpo-l3_proxy: %U", - format_vnet_sw_interface_name, vnm, - vnet_get_sw_interface(vnm, l3p->l3p_sw_if_index))); + return (format (s, "dpo-l3_proxy: %U", format_vnet_sw_if_index_name, vnm, + l3p->l3p_sw_if_index)); } else { -- cgit 1.2.3-korg