summaryrefslogtreecommitdiff
path: root/src/include/console
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-07-21 21:25:45 +0000
committerStefan Reinauer <stepan@openbios.org>2009-07-21 21:25:45 +0000
commit0001a7f1291d303b287050e440cf97be620ff5c3 (patch)
tree961e1fb9f6c9cdc9d910904c20cc5ade3a426b95 /src/include/console
parent094198cf43fccdbd0da6adcda3d93b0509dd0640 (diff)
Example how simple it is to use printk instead of printk_something in
coreboot ram stage. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4450 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include/console')
-rw-r--r--src/include/console/console.h2
1 files changed, 2 insertions, 0 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)