Prepare for using coreboot x86emu in userspace utility "vgabios"
authorStefan Reinauer <stepan@coresystems.de>
Tue, 23 Mar 2010 15:49:44 +0000 (15:49 +0000)
committerStefan Reinauer <stepan@openbios.org>
Tue, 23 Mar 2010 15:49:44 +0000 (15:49 +0000)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Joseph Smith <joe@settoplinux.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5275 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/devices/oprom/x86emu/debug.h

index 7aac995cc36bf06ba921a761506fbf805cd709fb..ba180bab40febbda5df0a953bfec08e81bbd1066 100644 (file)
 
 /*---------------------- Macros and type definitions ----------------------*/
 
+#ifdef CONFIG_DEFAULT_CONSOLE_LOGLEVEL
 /* printf is not available in coreboot... use printk */
 #define printf(x...) printk(BIOS_DEBUG, x)
+#endif
 
 /* checks to be enabled for "runtime" */