summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Kerhor <arthurdekerhor@gmail.com>2022-08-26 10:57:35 +0200
committerNeale Ranns <neale@graphiant.com>2022-08-29 23:56:22 +0000
commita9bfef73a7b866eccf2a39b19c12ec46d41e484e (patch)
treef5fbaa914b27695e561dc87ac3e0de81e8cb7a3e
parent186b2156c02c785b16a6d3cd02d3d327928a5397 (diff)
vlib: use error description when dropping packets
Using the error name makes it less explicit in the packet trace than the error description when a packet is dropped. Example of the trace when the TTL is <=1: 01:03:17:015278: drop ip4-input: time_expired We should have "ip4 ttl <= 1" instead of "time_expired" Type: fix Change-Id: Ic9decf10d609cc938e39d0f449359e41c406267e Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
-rw-r--r--src/vlib/drop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/drop.c b/src/vlib/drop.c
index 223e2204dfd..d353d727c76 100644
--- a/src/vlib/drop.c
+++ b/src/vlib/drop.c
@@ -96,7 +96,7 @@ format_error_trace (u8 * s, va_list * va)
i = counter_index (vm, vlib_error_get_code (&vm->node_main, e[0])) +
error_node->error_heap_index;
if (i != CLIB_U32_MAX)
- s = format (s, "%v: %s", error_node->name, em->counters_heap[i].name);
+ s = format (s, "%v: %s", error_node->name, em->counters_heap[i].desc);
return s;
}