From 15036ad0bc0b41e42d924e6b1cd897cca8f98c3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Ganne?= Date: Mon, 5 Oct 2020 14:55:00 +0200 Subject: [PATCH 1/1] vlib: add show trace limit warning at the end of output too MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/vlib/trace.c | 6 ++++-- 1 file 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; } -- 2.16.6