fix pcap_trace cli output issue
[vpp.git] / src / vnet / interface_cli.c
index 12310eb..c316750 100644 (file)
@@ -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;
            }