aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/ila-plugin/ila
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2016-08-04 14:25:01 +0100
committerDave Barach <openvpp@barachs.net>2016-08-11 14:55:35 +0000
commit5bcb3391f9eee85b4edcc0e42649ffeeea2dd997 (patch)
tree8827b22ede9033749e148be332a669ca635b9748 /plugins/ila-plugin/ila
parent041eacc81656d2ed5bc01b96b15a7d03a1700f13 (diff)
Custom adjacency formatting fix (Revived)
Looks like something strange is going on with indentation. Change-Id: I8e734a2119a4a744d7ce76ce83ecc7b237828d3b Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'plugins/ila-plugin/ila')
-rw-r--r--plugins/ila-plugin/ila/ila.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ila-plugin/ila/ila.c b/plugins/ila-plugin/ila/ila.c
index c0e6da11fac..a43aca13918 100644
--- a/plugins/ila-plugin/ila/ila.c
+++ b/plugins/ila-plugin/ila/ila.c
@@ -795,11 +795,11 @@ vlib_plugin_register (vlib_main_t * vm, vnet_plugin_handoff_t * h,
return error;
}
-u8 *ila_format_adjacency(u8 * s,
- struct ip_lookup_main_t * lm,
- ip_adjacency_t *adj)
+u8 *ila_format_adjacency(u8 * s, va_list * va)
{
ila_main_t *ilm = &ila_main;
+ __attribute((unused)) ip_lookup_main_t *lm = va_arg (*va, ip_lookup_main_t *);
+ ip_adjacency_t *adj = va_arg (*va, ip_adjacency_t *);
ila_adj_data_t * ad = (ila_adj_data_t *) & adj->opaque;
ila_entry_t *ie = pool_elt_at_index (ilm->entries, ad->entry_index);
return format(s, "idx:%d sir:%U", ad->entry_index, format_ip6_address, &ie->sir_address);