summaryrefslogtreecommitdiffstats
path: root/src/plugins/linux-cp
diff options
context:
space:
mode:
authorDmitry Valter <d-valter@yandex-team.ru>2022-03-26 17:42:25 +0000
committerDamjan Marion <dmarion@me.com>2022-03-27 09:21:06 +0000
commit30bb344ab6c82d742d2e5a79f62f8d4868db16f1 (patch)
tree574722a8558ef396349004a4d4d6de5e55bbc4a6 /src/plugins/linux-cp
parent5b47a6d014252e7fb123835da4859cfef4c95861 (diff)
linux-cp: fix name formatting
Format host interface name as vector rather than c-string. Otherwise non-null-terminated vector overrun triggers ASAN. Type: fix Fixes: 1705a6baefe205bb6792b547c7376eee3f328a71 Signed-off-by: Dmitry Valter <d-valter@yandex-team.ru> Change-Id: Ib204e57ee17c7ed3bfeb568dcdd834d7d7519102
Diffstat (limited to 'src/plugins/linux-cp')
-rw-r--r--src/plugins/linux-cp/lcp_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/linux-cp/lcp_interface.c b/src/plugins/linux-cp/lcp_interface.c
index 142ac505fcc..bcd8ac7c20e 100644
--- a/src/plugins/linux-cp/lcp_interface.c
+++ b/src/plugins/linux-cp/lcp_interface.c
@@ -410,7 +410,7 @@ lcp_itf_pair_del (u32 phy_sw_if_index)
lip = lcp_itf_pair_get (lipi);
LCP_ITF_PAIR_NOTICE (
- "pair_del: host:%U phy:%U host_if:%s vif:%d ns:%s",
+ "pair_del: host:%U phy:%U host_if:%v vif:%d ns:%v",
format_vnet_sw_if_index_name, vnet_get_main (), lip->lip_host_sw_if_index,
format_vnet_sw_if_index_name, vnet_get_main (), lip->lip_phy_sw_if_index,
lip->lip_host_name, lip->lip_vif_index, lip->lip_namespace);