summaryrefslogtreecommitdiffstats
path: root/debug.h
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2005-12-18 16:41:10 +0000
committerStefan Reinauer <stepan@coresystems.de>2005-12-18 16:41:10 +0000
commit1a565e53f2d09f77ce2cd2cb7c6051c4ff0d3dbc (patch)
treea9bf154f3d56d27069c1e1aff5567ba3d139af86 /debug.h
parent57e5ec2d2771add1f9dfb0ab3fab797937e9926f (diff)
downloadflashrom-1a565e53f2d09f77ce2cd2cb7c6051c4ff0d3dbc.zip
flashrom-1a565e53f2d09f77ce2cd2cb7c6051c4ff0d3dbc.tar.gz
Multiple unrelated changes
* make -v switch print debug messages. * do case insensitive comparison of mainboards, as wished on the mailinglist Corresponding to flashrom svn r37 and coreboot v2 svn r2146.
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/debug.h b/debug.h
index 7d540b5..0614747 100644
--- a/debug.h
+++ b/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
OpenPOWER on IntegriCloud