]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: move debug variables under ifdef 7266/head
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 8 Oct 2020 17:06:27 +0000 (20:06 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 8 Oct 2020 20:14:54 +0000 (23:14 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
isisd/isis_zebra.c

index 57cdfb1cdf7c634a58c8f527f8eb27082b32a88e..9ed868e7959eaa20c6bc3bb6c0903f2f6fcbf39f 100644 (file)
@@ -87,8 +87,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);
@@ -96,10 +98,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)