fix pcap_trace cli output issue
@@ -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;
}
