aboutsummaryrefslogtreecommitdiff
path: root/ubifs-utils/common/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubifs-utils/common/defs.h')
-rw-r--r--ubifs-utils/common/defs.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ubifs-utils/common/defs.h b/ubifs-utils/common/defs.h
index 3dafc6d..cafc94a 100644
--- a/ubifs-utils/common/defs.h
+++ b/ubifs-utils/common/defs.h
@@ -23,9 +23,7 @@ extern struct ubifs_info info_;
enum { MKFS_PROGRAM_TYPE = 0 };
-extern int debug_level;
-
-#define dbg_msg(lvl, fmt, ...) do {if (debug_level >= lvl) \
+#define dbg_msg(lvl, fmt, ...) do {if (info_.debug_level >= lvl) \
printf("%s: %s: " fmt "\n", PROGRAM_NAME, __FUNCTION__, ##__VA_ARGS__); \
} while(0)