diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/console/console.h | 2 | ||||
-rw-r--r-- | src/include/x86emu/x86emu.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h index b4e8e0911b..4bebdadb0c 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -29,6 +29,8 @@ extern struct console_driver econsole_drivers[]; extern int console_loglevel; int do_printk(int msg_level, const char *fmt, ...) __attribute__((format(printf, 2, 3))); +#define printk(x...) do_printk(x) + #define printk_emerg(fmt, arg...) do_printk(BIOS_EMERG ,fmt, ##arg) #define printk_alert(fmt, arg...) do_printk(BIOS_ALERT ,fmt, ##arg) #define printk_crit(fmt, arg...) do_printk(BIOS_CRIT ,fmt, ##arg) diff --git a/src/include/x86emu/x86emu.h b/src/include/x86emu/x86emu.h index bd01f20cc4..c52b5567a3 100644 --- a/src/include/x86emu/x86emu.h +++ b/src/include/x86emu/x86emu.h @@ -49,7 +49,8 @@ /* FIXME: undefine printk for the moment */ #ifdef COREBOOT_VERSION #include "console/console.h" -#define printk printk_debug +#undef printk +#define printk(x...) do_printk(BIOS_DEBUG, x) #else #define printk printf #endif |