diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-03-05 13:49:15 +0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-03-05 06:06:17 -0800 |
commit | 6d51866f409e90274ff8cfb06b92a6c828692698 (patch) | |
tree | c67c25b6d98943298d0cb136d87ab19229634309 | |
parent | e7815dc27286b66bd67e4727a1a4f51a5b862b0d (diff) | |
download | petitboot-6d51866f409e90274ff8cfb06b92a6c828692698.zip petitboot-6d51866f409e90274ff8cfb06b92a6c828692698.tar.gz |
nc: Only expand debug macros if DEBUG is defined
To reduce debugging output from the UI
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
-rw-r--r-- | ui/ncurses/nc-scr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/ncurses/nc-scr.h b/ui/ncurses/nc-scr.h index 2374c20..bda2c32 100644 --- a/ui/ncurses/nc-scr.h +++ b/ui/ncurses/nc-scr.h @@ -22,9 +22,15 @@ #include <linux/input.h> /* This must be included before ncurses.h */ #include <ncurses.h> +#ifdef DEBUG #define DBG(fmt, args...) pb_log("DBG: " fmt, ## args) #define DBGS(fmt, args...) \ pb_log("DBG:%s:%d: " fmt, __func__, __LINE__, ## args) +#else +#define DBG(fmt, args...) +#define DBGS(fmt, args...) +#endif + enum pb_nc_sig { pb_cui_sig = 111, |