fix newly introduced printk_foo warnings..
[coreboot.git] / src / arch / i386 / lib / console.c
1 #include <build.h>
2 #include <console/loglevel.h>
3
4 #if CONFIG_USE_PRINTK_IN_CAR == 0
5 #include "console_print.c"
6 #else  /* CONFIG_USE_PRINTK_IN_CAR == 1 */
7 #include <console/console.h>
8 #endif /* CONFIG_USE_PRINTK_IN_CAR */
9
10 void console_init(void)
11 {
12         static const char console_test[] = 
13                 "\r\n\r\ncoreboot-"
14                 COREBOOT_VERSION
15                 COREBOOT_EXTRA_VERSION
16                 " "
17                 COREBOOT_BUILD
18                 " starting...\r\n";
19         print_info(console_test);
20 }
21
22 void die(const char *str)
23 {
24         print_emerg(str);
25         do {
26                 hlt();
27         } while(1);
28 }