ws_debug_level used only if defined DEBUG.

ok matthieu@
This commit is contained in:
shadchin 2011-11-19 12:59:55 +00:00
parent df8922a136
commit cb94a4132b

View File

@ -16,12 +16,11 @@
#include <dev/wscons/wsconsio.h> #include <dev/wscons/wsconsio.h>
/* #undef DEBUG */ /* #undef DEBUG */
#define DEBUG #define DEBUG
#undef DBG #undef DBG
extern int ws_debug_level;
#ifdef DEBUG #ifdef DEBUG
extern int ws_debug_level;
# define DBG(lvl, f) { if ((lvl) <= ws_debug_level) f;} # define DBG(lvl, f) { if ((lvl) <= ws_debug_level) f;}
#else #else
# define DBG(lvl, f) # define DBG(lvl, f)