vlib: fix format_error_trace
Error index calculation is error_code + error_node->error_heap_index.
Type: fix
Fixes: gerrit 20802
@@ -91,7 +91,8 @@ format_error_trace (u8 * s, va_list * va)
u32 i;
error_node = vlib_get_node (vm, vlib_error_get_node (&vm->node_main, e[0]));
- i = counter_index (vm, vlib_error_get_code (&vm->node_main, e[0]));
+ i = counter_index (vm, vlib_error_get_code (&vm->node_main, e[0])) +
+ error_node->error_heap_index;
s = format (s, "%v: %s", error_node->name, em->error_strings_heap[i]);
return s;
