From: Dan Carpenter Date: Mon, 28 Jan 2013 06:22:00 +0000 (+0300) Subject: smatch: create a local_debug() macro X-Git-Tag: 1.57~37 X-Git-Url: https://repo.or.cz/w/smatch.git/commitdiff_plain/fde06b2791ce473d189b9d1125f7a54a3ca943a6 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 --- 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() {