]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: move debug variables under ifdef
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 8 Oct 2020 17:06:27 +0000 (20:06 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Sat, 10 Oct 2020 09:53:45 +0000 (12:53 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
isisd/isis_zebra.c

index 882e54418245f346e174eb1d1df9ae9d1ffd460c..08d5cc1b61b17c1621537bce12382fa72266c063 100644 (file)
@@ -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)