summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-10-21 15:13:54 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-11-05 10:46:54 +0000
commitc9ddd2eec1194b6517106d31a6e40238d4aec4e8 (patch)
treecbaadecf771a69ee14af9e55de989ec90d36f576 /src/vnet
parente7ac6d0250664f278e7aa5a483f413bda0432def (diff)
vlib: only dump 1st buffer in chain by default
Several nodes include buffers in their traces, but only the 1st. When formatting the trace we must not try to iterate through all chained buffers. Default to display only the 1st buffer. Type: fix Change-Id: Ib3c668bbf4ab70ae68eba2ac402c7b7329825b70 Signed-off-by: Benoît Ganne <bganne@cisco.com> (cherry picked from commit 4354317bf3592d81fcafd94e33b320c3e49f45d3)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/buffer.c b/src/vnet/buffer.c
index cf61780cb74..3cb6b948d2b 100644
--- a/src/vnet/buffer.c
+++ b/src/vnet/buffer.c
@@ -45,7 +45,7 @@ format_vnet_buffer (u8 * s, va_list * args)
if (b->flags & VNET_BUFFER_F_LOOP_COUNTER_VALID)
a = format (a, "loop-counter %d ", vnet_buffer2 (b)->loop_counter);
- s = format (s, "%U", format_vlib_buffer, b);
+ s = format (s, "%U", format_vlib_buffer_no_chain, b);
if (a)
s = format (s, "\n%U%v", format_white_space, indent, a);
vec_free (a);