From f7537449e9e563d32fd1dbab52b82cdd23dc4370 Mon Sep 17 00:00:00 2001 From: Jack Xu Date: Tue, 26 Mar 2019 13:46:00 -0400 Subject: fix pcap_trace cli output issue Change-Id: Ia2be56e198c960788430705b356170f8cc12c450 Signed-off-by: Jack Xu --- src/vnet/interface_cli.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/vnet') diff --git a/src/vnet/interface_cli.c b/src/vnet/interface_cli.c index 12310eba52a..c316750968e 100644 --- a/src/vnet/interface_cli.c +++ b/src/vnet/interface_cli.c @@ -1736,7 +1736,8 @@ pcap_trace_command_internal (vlib_main_t * vm, } else { - vlib_cli_output (vm, "pcap tx capture already on..."); + vlib_cli_output (vm, "pcap %s capture already on...", + (rx_tx == VLIB_RX) ? "rx" : "tx"); errorFlag = 1; break; } @@ -1764,7 +1765,8 @@ pcap_trace_command_internal (vlib_main_t * vm, } else { - vlib_cli_output (vm, "pcap tx capture already off..."); + vlib_cli_output (vm, "pcap %s capture already off...", + (rx_tx == VLIB_RX) ? "rx" : "tx"); errorFlag = 1; break; } -- cgit 1.2.3-korg