summaryrefslogtreecommitdiffstats
path: root/src/vlib/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/trace.c')
-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;
}