From 98de8cdbfe055a80b4d4a265b1463f3826a346e6 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sun, 18 Dec 2005 16:41:10 +0000 Subject: * 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 --- util/flashrom/debug.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'util/flashrom/debug.h') 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 -- cgit v1.2.3