aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/nhrp/nhrp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vnet/nhrp/nhrp.c b/src/vnet/nhrp/nhrp.c
index 6a616ba273d..a89f6cd9459 100644
--- a/src/vnet/nhrp/nhrp.c
+++ b/src/vnet/nhrp/nhrp.c
@@ -154,10 +154,11 @@ format_nhrp_entry (u8 * s, va_list * args)
ne = nhrp_entry_get (nei);
s = format (s, "[%d] ", nei);
- s = format (s, "%U:%U ", format_vnet_sw_if_index_name,
- vnm, ne->ne_key->nk_sw_if_index,
- format_ip46_address, &ne->ne_key->nk_peer, IP46_TYPE_ANY);
- s = format (s, "via %d:%U",
+ s = format (s, "%U:", format_vnet_sw_if_index_name,
+ vnm, ne->ne_key->nk_sw_if_index);
+ s = format (s, " %U", format_ip46_address,
+ &ne->ne_key->nk_peer, IP46_TYPE_ANY);
+ s = format (s, " via [%d]:%U",
fib_table_get_table_id (ne->ne_fib_index, ne->ne_nh.fp_proto),
format_fib_prefix, &ne->ne_nh);