summaryrefslogtreecommitdiff
path: root/src/arch/ppc/include/printk.h
diff options
context:
space:
mode:
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 */
+