Custom adjacency formatting fix

Looks like something strange is going on with indentation.

Change-Id: I1522caffa3a8a5e3aa00e1169b7469facc505a8d
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
This commit is contained in:
Pierre Pfister
2016-08-04 14:25:01 +01:00
committed by Dave Barach
parent 166a9d4c21
commit ffc7ecace8

View File

@ -1045,16 +1045,17 @@ u8 * format_ip_adjacency (u8 * s, va_list * args)
ip_adj_register_t *reg;
if (adj->lookup_next_index < vec_len (lm->registered_adjacencies))
{
reg = vec_elt_at_index(lm->registered_adjacencies,
adj->lookup_next_index);
if (reg->fn)
{
reg = vec_elt_at_index(lm->registered_adjacencies,
adj->lookup_next_index);
if (reg->fn)
{
s = format(s, " %U", reg->fn, lm, adj);
goto format_done;
}
s = format(s, " ");
s = reg->fn(s, lm, adj);
goto format_done;
}
}
switch (adj->lookup_next_index)
{
case IP_LOOKUP_NEXT_REWRITE: