diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-10-21 15:13:54 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-10-31 22:46:04 +0000 |
commit | 4354317bf3592d81fcafd94e33b320c3e49f45d3 (patch) | |
tree | cdbfd2e30240ee7edcaf5f6a3de977f75cc0b633 /src/plugins | |
parent | c520fe7ab9db6fa60f9e69be990dd5c83eb40522 (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>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/vmxnet3/format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vmxnet3/format.c b/src/plugins/vmxnet3/format.c index 8e39b5faf36..d463feb3bec 100644 --- a/src/plugins/vmxnet3/format.c +++ b/src/plugins/vmxnet3/format.c @@ -164,7 +164,7 @@ format_vmxnet3_input_trace (u8 * s, va_list * args) s = format (s, "vmxnet3: %v (%d) next-node %U", hi->name, t->hw_if_index, format_vlib_next_node_name, vm, node->index, t->next_index); - s = format (s, "\n buffer %U", format_vlib_buffer, &t->buffer); + s = format (s, "\n buffer %U", format_vnet_buffer, &t->buffer); return s; } |