From 85a3a650761dd9b700fab60bf3f0fb139bfb69ea Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Thu, 8 Oct 2020 20:06:27 +0300 Subject: [PATCH] isisd: move debug variables under ifdef Signed-off-by: Igor Ryzhov --- isisd/isis_zebra.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index 882e544182..08d5cc1b61 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -86,8 +86,10 @@ static int isis_zebra_if_address_add(ZAPI_CALLBACK_ARGS) { struct isis_circuit *circuit; struct connected *c; +#ifdef EXTREME_DEBUG struct prefix *p; char buf[PREFIX2STR_BUFFER]; +#endif /* EXTREME_DEBUG */ c = zebra_interface_address_read(ZEBRA_INTERFACE_ADDRESS_ADD, zclient->ibuf, vrf_id); @@ -95,10 +97,10 @@ static int isis_zebra_if_address_add(ZAPI_CALLBACK_ARGS) if (c == NULL) return 0; +#ifdef EXTREME_DEBUG p = c->address; - prefix2str(p, buf, sizeof(buf)); -#ifdef EXTREME_DEBUG + if (p->family == AF_INET) zlog_debug("connected IP address %s", buf); if (p->family == AF_INET6) -- 2.39.5