From: Benoît Ganne Date: Wed, 16 Oct 2019 12:54:24 +0000 (+0200) Subject: misc: (cdp) fix non-null terminated vector use X-Git-Tag: v19.08.2~175 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=f5f41e5f13710eb293f0f04a74926c91eabde0ea;p=vpp.git misc: (cdp) fix non-null terminated vector use Type: fix Change-Id: I31e5d9d9e93339eb789aed20996f326b085c22a9 Signed-off-by: Benoît Ganne (cherry picked from commit 94e4dea15ac704a40617fe8bcfcce74e2d890856) --- diff --git a/src/plugins/cdp/cdp_input.c b/src/plugins/cdp/cdp_input.c index a6da0f67ac0..e52361b0267 100644 --- a/src/plugins/cdp/cdp_input.c +++ b/src/plugins/cdp/cdp_input.c @@ -444,7 +444,7 @@ format_cdp_neighbors (u8 * s, va_list * va) hw = vnet_get_sup_hw_interface (vnm, n->sw_if_index); if (n->disabled == 0) - s = format (s, "%=25s %=25s %=25s %=10.1f\n", + s = format (s, "%=25v %=25s %=25s %=10.1f\n", hw->name, n->device_name, n->port_id, n->last_heard); }));