From a67af69a32cffbd727a48ea7b1d23ce92f1327ee Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 24 Aug 2017 18:04:18 +0200 Subject: src: Fix debug_proto_ctx() Debug mask check was done against wrong flag, causing protocol context debug output being printed when only --debug=netlink was given. Fixes: be441e1ffdc24 ("src: add debugging mask to context structure") Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- src/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proto.c') diff --git a/src/proto.c b/src/proto.c index 5bd50b7b..a72c10c3 100644 --- a/src/proto.c +++ b/src/proto.c @@ -143,7 +143,7 @@ static void proto_ctx_debug(const struct proto_ctx *ctx, enum proto_bases base, { unsigned int i; - if (!(debug_mask & DEBUG_NETLINK)) + if (!(debug_mask & DEBUG_PROTO_CTX)) return; pr_debug("update %s protocol context:\n", proto_base_names[base]); -- cgit v1.2.3