summaryrefslogtreecommitdiff
path: root/util/flashrom/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/flashrom/debug.h')
-rw-r--r--util/flashrom/debug.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/flashrom/debug.h b/util/flashrom/debug.h
index 7d540b5e2c..0614747ba8 100644
--- a/util/flashrom/debug.h
+++ b/util/flashrom/debug.h
@@ -2,6 +2,9 @@
#define __DEBUG_H__ 1
//#define printf_debug(x...) printf(x)
-#define printf_debug(x...) { }
+
+extern int verbose;
+
+#define printf_debug(x...) { if(verbose) printf(x); }
#endif