From 57076702901ca755b64a475d270f9e0614aa41c7 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 26 May 2021 11:45:07 +0300 Subject: [PATCH] ospf6d: fix invalid "no debug ospf6 message unknown" The message is always shown in the config, because IS_OSPF6_DEBUG_MESSAGE works incorrectly when negated because of missing outer brackets. Signed-off-by: Igor Ryzhov --- ospf6d/ospf6_message.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ospf6d/ospf6_message.h b/ospf6d/ospf6_message.h index c4cdbd52f4..7c108bd452 100644 --- a/ospf6d/ospf6_message.h +++ b/ospf6d/ospf6_message.h @@ -42,14 +42,14 @@ extern unsigned char conf_debug_ospf6_message[]; (conf_debug_ospf6_message[type] &= ~(level)) #define IS_OSPF6_DEBUG_MESSAGE(t, e) \ - ((OSPF6_DEBUG_MESSAGE_##e) == OSPF6_DEBUG_MESSAGE_RECV_HDR) \ + (((OSPF6_DEBUG_MESSAGE_##e) == OSPF6_DEBUG_MESSAGE_RECV_HDR) \ ? (conf_debug_ospf6_message[t] \ & (OSPF6_DEBUG_MESSAGE_RECV_BOTH)) \ : (((OSPF6_DEBUG_MESSAGE_##e) == OSPF6_DEBUG_MESSAGE_SEND_HDR) \ ? (conf_debug_ospf6_message[t] \ & (OSPF6_DEBUG_MESSAGE_SEND_BOTH)) \ : (conf_debug_ospf6_message[t] \ - & (OSPF6_DEBUG_MESSAGE_##e))) + & (OSPF6_DEBUG_MESSAGE_##e)))) #define IS_OSPF6_DEBUG_MESSAGE_ENABLED(type, e) \ (conf_debug_ospf6_message[type] & (OSPF6_DEBUG_MESSAGE_##e)) -- 2.39.5