summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-10-05 14:55:00 +0200
committerDave Barach <openvpp@barachs.net>2021-01-25 12:12:02 +0000
commit15036ad0bc0b41e42d924e6b1cd897cca8f98c3c (patch)
tree6cbcd4be8ec91d30d6f99afe28db18644ca54306 /src
parent566b427b05ff21f4b50e3e10ceea30bc66939116 (diff)
vlib: add show trace limit warning at the end of output too
Users tend to miss the warning too often, add it to the end of the output in hope it would be easier to catch. Type: improvement Change-Id: I264df7e3b6ab1ffb1a383807f4444d9cbaf40999 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vlib/trace.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vlib/trace.c b/src/vlib/trace.c
index 156378af8e3..836e8b473a6 100644
--- a/src/vlib/trace.c
+++ b/src/vlib/trace.c
@@ -338,8 +338,10 @@ cli_show_trace_buffer (vlib_main_t * vm,
{
if (i == max)
{
- vlib_cli_output (vm, "Limiting display to %d packets."
- " To display more specify max.", max);
+ char *warn = "Limiting display to %d packets."
+ " To display more specify max.";
+ vlib_cli_output (vm, warn, max);
+ s = format (s, warn, max);
goto done;
}