summaryrefslogtreecommitdiff
path: root/src/include/console
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-07-19 04:28:22 +0000
committerEric Biederman <ebiederm@xmission.com>2003-07-19 04:28:22 +0000
commit9b4336cf418d22551bea09d93e1cee79281b110e (patch)
tree3f1e24216c11918644a98fd1e46e2fdb40fd12fe /src/include/console
parentfe4414587a4466b848184b8837d4c5a280949824 (diff)
downloadcoreboot-9b4336cf418d22551bea09d93e1cee79281b110e.tar.xz
- Major cleanup of the bootpath
- Changes to allow more code to be compiled both ways - Working SMP support git-svn-id: svn://svn.coreboot.org/coreboot/trunk@987 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include/console')
-rw-r--r--src/include/console/console.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h
index 57ba9da268..2a9f38896a 100644
--- a/src/include/console/console.h
+++ b/src/include/console/console.h
@@ -72,5 +72,54 @@ int do_printk(int msg_level, const char *fmt, ...);
#define printk_spew(fmt, arg...) do {} while(0)
#endif
+#define print_emerg(STR) printk_emerg ("%s", (STR))
+#define print_alert(STR) printk_alert ("%s", (STR))
+#define print_crit(STR) printk_crit ("%s", (STR))
+#define print_err(STR) printk_err ("%s", (STR))
+#define print_warning(STR) printk_warning("%s", (STR))
+#define print_notice(STR) printk_notice ("%s", (STR))
+#define print_info(STR) printk_info ("%s", (STR))
+#define print_debug(STR) printk_debug ("%s", (STR))
+#define print_spew(STR) printk_spew ("%s", (STR))
+
+#define print_emerg_char(CH) printk_emerg ("%c", (CH))
+#define print_alert_char(CH) printk_alert ("%c", (CH))
+#define print_crit_char(CH) printk_crit ("%c", (CH))
+#define print_err_char(CH) printk_err ("%c", (CH))
+#define print_warning_char(CH) printk_warning("%c", (CH))
+#define print_notice_char(CH) printk_notice ("%c", (CH))
+#define print_info_char(CH) printk_info ("%c", (CH))
+#define print_debug_char(CH) printk_debug ("%c", (CH))
+#define print_spew_char(CH) printk_spew ("%c", (CH))
+
+#define print_emerg_hex8(HEX) printk_emerg ("%08x", (HEX))
+#define print_alert_hex8(HEX) printk_alert ("%08x", (HEX))
+#define print_crit_hex8(HEX) printk_crit ("%08x", (HEX))
+#define print_err_hex8(HEX) printk_err ("%08x", (HEX))
+#define print_warning_hex8(HEX) printk_warning("%08x", (HEX))
+#define print_notice_hex8(HEX) printk_notice ("%08x", (HEX))
+#define print_info_hex8(HEX) printk_info ("%08x", (HEX))
+#define print_debug_hex8(HEX) printk_debug ("%08x", (HEX))
+#define print_spew_hex8(HEX) printk_spew ("%08x", (HEX))
+
+#define print_emerg_hex16(HEX) printk_emerg ("%016x", (HEX))
+#define print_alert_hex16(HEX) printk_alert ("%016x", (HEX))
+#define print_crit_hex16(HEX) printk_crit ("%016x", (HEX))
+#define print_err_hex16(HEX) printk_err ("%016x", (HEX))
+#define print_warning_hex16(HEX) printk_warning("%016x", (HEX))
+#define print_notice_hex16(HEX) printk_notice ("%016x", (HEX))
+#define print_info_hex16(HEX) printk_info ("%016x", (HEX))
+#define print_debug_hex16(HEX) printk_debug ("%016x", (HEX))
+#define print_spew_hex16(HEX) printk_spew ("%016x", (HEX))
+
+#define print_emerg_hex32(HEX) printk_emerg ("%032x", (HEX))
+#define print_alert_hex32(HEX) printk_alert ("%032x", (HEX))
+#define print_crit_hex32(HEX) printk_crit ("%032x", (HEX))
+#define print_err_hex32(HEX) printk_err ("%032x", (HEX))
+#define print_warning_hex32(HEX) printk_warning("%032x", (HEX))
+#define print_notice_hex32(HEX) printk_notice ("%032x", (HEX))
+#define print_info_hex32(HEX) printk_info ("%032x", (HEX))
+#define print_debug_hex32(HEX) printk_debug ("%032x", (HEX))
+#define print_spew_hex32(HEX) printk_spew ("%032x", (HEX))
#endif /* CONSOLE_CONSOLE_H_ */