From a6ba3ad626ccd15f9104b3143c297f39cce6e050 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 22 Aug 2017 18:19:12 +0200 Subject: src: remove ifdef DEBUG pollution Get rid of lots of ifdef DEBUG pollution in the code. The --debug= option is useful to get feedback from users, so it should be always there. And we really save nothing from keeping this code away from the control plane with a compile time option. Just running tests/shell/ before and after this patch, time shows almost no difference. So this patch leaves --enable-debug around to add debugging symbols in your builds, this is left set on by default. Signed-off-by: Pablo Neira Ayuso --- src/proto.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/proto.c') diff --git a/src/proto.c b/src/proto.c index 7ac0ee03..045f2d81 100644 --- a/src/proto.c +++ b/src/proto.c @@ -140,7 +140,6 @@ const struct hook_proto_desc hook_proto_desc[] = { static void proto_ctx_debug(const struct proto_ctx *ctx, enum proto_bases base) { -#ifdef DEBUG unsigned int i; if (!(debug_level & DEBUG_PROTO_CTX)) @@ -159,7 +158,6 @@ static void proto_ctx_debug(const struct proto_ctx *ctx, enum proto_bases base) pr_debug("\n"); } pr_debug("\n"); -#endif } /** -- cgit v1.2.3