nat: fix bihash kvp print 50/31750/3
authorKlement Sekera <ksekera@cisco.com>
Wed, 24 Mar 2021 16:26:57 +0000 (17:26 +0100)
committerOle Tr�an <otroan@employees.org>
Thu, 25 Mar 2021 18:34:57 +0000 (18:34 +0000)
Type: fix
Change-Id: I392d348b1a38affac8761b0614b117cd991958d7
Signed-off-by: Klement Sekera <ksekera@cisco.com>
src/plugins/nat/nat44-ei/nat44_ei.c

index 9ee0362..253dd78 100644 (file)
@@ -2364,8 +2364,9 @@ format_nat44_ei_session_kvp (u8 *s, va_list *args)
 {
   clib_bihash_kv_8_8_t *v = va_arg (*args, clib_bihash_kv_8_8_t *);
 
-  s =
-    format (s, "%U session-index %llu", format_nat44_ei_key, v->key, v->value);
+  s = format (s, "%U thread-index %llu session-index %llu",
+             format_nat44_ei_key, v->key, nat_value_get_thread_index (v),
+             nat_value_get_session_index (v));
 
   return s;
 }