aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-03-21 10:20:15 +0000
committerFlorin Coras <florin.coras@gmail.com>2019-03-21 18:18:38 +0000
commit7227c39dc47e5d3a8a82d62d37e72f58392e972f (patch)
treea797932668147452305e889e8d4e285594ecfa5d /src
parent2ac885c665309fc670cec96675ec1f510116fc13 (diff)
error-drop; print interface by name
Change-Id: I19736180c1e7e1d13dbb74bcd8f1dfae762b1d25 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/interface_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/interface_output.c b/src/vnet/interface_output.c
index a013810de4b..bb97493a756 100644
--- a/src/vnet/interface_output.c
+++ b/src/vnet/interface_output.c
@@ -1000,7 +1000,8 @@ format_vnet_error_trace (u8 * s, va_list * va)
CLIB_UNUSED (vlib_node_t * node) = va_arg (*va, vlib_node_t *);
vnet_error_trace_t *t = va_arg (*va, vnet_error_trace_t *);
- s = format (s, " rx:%d", t->sw_if_index);
+ s = format (s, "rx:%U", format_vnet_sw_if_index_name,
+ vnet_get_main (), t->sw_if_index);
return s;
}