From fde06b2791ce473d189b9d1125f7a54a3ca943a6 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 28 Jan 2013 09:22:00 +0300 Subject: [PATCH] smatch: create a local_debug() macro It's like sm_msg() but only if you have local_debug turned on. Signed-off-by: Dan Carpenter --- smatch.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/smatch.h b/smatch.h index f2190cae..c0d12533 100644 --- a/smatch.h +++ b/smatch.h @@ -170,6 +170,12 @@ do { \ sm_printf("\n"); \ } while (0) +#define local_debug(msg...) \ +do { \ + if (local_debug) \ + sm_msg(msg); \ +} while (0) + extern char *implied_debug_msg; static inline void print_implied_debug_msg() { -- 2.11.4.GIT