summaryrefslogtreecommitdiff
path: root/src/arch/ppc/include/printk.h
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2003-11-09 23:11:34 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2003-11-09 23:11:34 +0000
commit91deab98a9adea9a4f2251ba73f46ca86f2acdaa (patch)
treea568857e10c756a52e3ec1c38220843ca7f71c19 /src/arch/ppc/include/printk.h
parent54d4e651635c17979f27a615b18ba3550a91e7ea (diff)
downloadcoreboot-91deab98a9adea9a4f2251ba73f46ca86f2acdaa.tar.xz
*** empty log message ***
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1270 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/ppc/include/printk.h')
-rw-r--r--src/arch/ppc/include/printk.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/arch/ppc/include/printk.h b/src/arch/ppc/include/printk.h
new file mode 100644
index 0000000000..dac99a8ba6
--- /dev/null
+++ b/src/arch/ppc/include/printk.h
@@ -0,0 +1,18 @@
+#ifndef _PRINTK_H
+#define _PRINTK_H
+#include <console/loglevel.h>
+
+extern int do_printk(int, const char *, ...);
+
+#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)
+#define printk_err(fmt, arg...) do_printk(BIOS_ERR ,fmt, ##arg)
+#define printk_warning(fmt, arg...) do_printk(BIOS_WARNING ,fmt, ##arg)
+#define printk_notice(fmt, arg...) do_printk(BIOS_NOTICE ,fmt, ##arg)
+#define printk_info(fmt, arg...) do_printk(BIOS_INFO ,fmt, ##arg)
+#define printk_debug(fmt, arg...) do_printk(BIOS_DEBUG ,fmt, ##arg)
+#define printk_spew(fmt, arg...) do_printk(BIOS_SPEW ,fmt, ##arg)
+
+#endif /* _PRINTK_H */
+