diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2020-10-08 20:06:27 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2020-10-10 12:53:45 +0300 | 
| commit | 85a3a650761dd9b700fab60bf3f0fb139bfb69ea (patch) | |
| tree | b70b097d7c6ed6a5a06da845c36b182c34f4da28 /isisd | |
| parent | b1acf9094aa1829ae00cfc14910fb95ac516bc50 (diff) | |
isisd: move debug variables under ifdef
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd')
| -rw-r--r-- | isisd/isis_zebra.c | 6 | 
1 files 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)  | 
