summaryrefslogtreecommitdiff
path: root/util/flashrom/debug.h
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@openbios.org>2005-12-18 16:41:10 +0000
committerStefan Reinauer <stepan@openbios.org>2005-12-18 16:41:10 +0000
commit98de8cdbfe055a80b4d4a265b1463f3826a346e6 (patch)
tree19dec465cc4501f03312435c0bc0a4f7392b0f49 /util/flashrom/debug.h
parent6c02eb2cb54c5013f2bba4622cc1a487bca55d1f (diff)
* make -v switch print debug messages.
* do case insensitive comparison of mainboards, as wished on the mailinglist git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2146 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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