diff options
Diffstat (limited to 'zebra/zebra_routemap.c')
| -rw-r--r-- | zebra/zebra_routemap.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zebra_routemap.c b/zebra/zebra_routemap.c index d9a7ee465a..142501b149 100644 --- a/zebra/zebra_routemap.c +++ b/zebra/zebra_routemap.c @@ -1041,7 +1041,7 @@ route_match_ip_next_hop(void *rule, const struct prefix *prefix, void *object)  	}  	alist = access_list_lookup(AFI_IP, (char *)rule);  	if (alist == NULL) { -		if (CHECK_FLAG(rmap_debug, DEBUG_ROUTEMAP_DETAIL)) +		if (unlikely(CHECK_FLAG(rmap_debug, DEBUG_ROUTEMAP_DETAIL)))  			zlog_debug(  				"%s: Access-List Specified: %s does not exist defaulting to NO_MATCH",  				__func__, (char *)rule); @@ -1104,7 +1104,7 @@ route_match_ip_next_hop_prefix_list(void *rule, const struct prefix *prefix,  	}  	plist = prefix_list_lookup(AFI_IP, (char *)rule);  	if (plist == NULL) { -		if (CHECK_FLAG(rmap_debug, DEBUG_ROUTEMAP_DETAIL)) +		if (unlikely(CHECK_FLAG(rmap_debug, DEBUG_ROUTEMAP_DETAIL)))  			zlog_debug(  				"%s: Prefix List %s specified does not exist defaulting to NO_MATCH",  				__func__, (char *)rule); @@ -1145,7 +1145,7 @@ route_match_address(afi_t afi, void *rule, const struct prefix *prefix,  	alist = access_list_lookup(afi, (char *)rule);  	if (alist == NULL) { -		if (CHECK_FLAG(rmap_debug, DEBUG_ROUTEMAP_DETAIL)) +		if (unlikely(CHECK_FLAG(rmap_debug, DEBUG_ROUTEMAP_DETAIL)))  			zlog_debug(  				"%s: Access-List Specified: %s does not exist defaulting to NO_MATCH",  				__func__, (char *)rule); @@ -1207,7 +1207,7 @@ route_match_address_prefix_list(void *rule, const struct prefix *prefix,  	plist = prefix_list_lookup(afi, (char *)rule);  	if (plist == NULL) { -		if (CHECK_FLAG(rmap_debug, DEBUG_ROUTEMAP_DETAIL)) +		if (unlikely(CHECK_FLAG(rmap_debug, DEBUG_ROUTEMAP_DETAIL)))  			zlog_debug(  				"%s: Prefix List %s specified does not exist defaulting to NO_MATCH",  				__func__, (char *)rule);  | 
