Skip to content

Commit

Permalink
isisd: fix build errors when EXTREME_DEBUG is defined
Browse files Browse the repository at this point in the history
Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed Nov 4, 2020
1 parent 9535a96 commit 2831591
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions isisd/isis_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ static int isis_zebra_if_address_add(ZAPI_CALLBACK_ARGS)
return 0;

#ifdef EXTREME_DEBUG
if (p->family == AF_INET)
if (c->address->family == AF_INET)
zlog_debug("connected IP address %pFX", c->address);
if (p->family == AF_INET6)
if (c->address->family == AF_INET6)
zlog_debug("connected IPv6 address %pFX", c->address);
#endif /* EXTREME_DEBUG */

Expand All @@ -122,9 +122,9 @@ static int isis_zebra_if_address_del(ZAPI_CALLBACK_ARGS)
return 0;

#ifdef EXTREME_DEBUG
if (p->family == AF_INET)
if (c->address->family == AF_INET)
zlog_debug("disconnected IP address %pFX", c->address);
if (p->family == AF_INET6)
if (c->address->family == AF_INET6)
zlog_debug("disconnected IPv6 address %pFX", c->address);
#endif /* EXTREME_DEBUG */

Expand Down

0 comments on commit 2831591

Please sign in to comment.