aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/interface_cli.c
diff options
context:
space:
mode:
authorJack Xu <jack.c.xu@ericsson.com>2019-03-26 13:46:00 -0400
committerDave Wallace <dwallacelf@gmail.com>2019-04-05 17:16:13 +0000
commitf7537449e9e563d32fd1dbab52b82cdd23dc4370 (patch)
tree5643bb823ecb354976eb70309631e76118f8ad0e /src/vnet/interface_cli.c
parentccf65fbc0ebc2541a58f67d5e57297b7b1429658 (diff)
fix pcap_trace cli output issue
Change-Id: Ia2be56e198c960788430705b356170f8cc12c450 Signed-off-by: Jack Xu <jack.c.xu@ericsson.com>
Diffstat (limited to 'src/vnet/interface_cli.c')
-rw-r--r--src/vnet/interface_cli.c6
1 files changed, 4 insertions, 2 deletions
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;
}