fixed function prototype for die()
[coreboot.git] / src / console / console.c
index b97ee8e1d57fa770fa09b358fb4c7e5481302f56..7f97b5c95f84f5699e74c74f684e0320402f933e 100644 (file)
@@ -82,15 +82,16 @@ int console_tst_byte(void)
  */
 void post_code(uint8_t value)
 {
+#if NO_POST==0
 #if CONFIG_SERIAL_POST==1
-       printk_info("POST: 0x%02x\n", value);
-#elsif !define(NO_POST)
+       printk_emerg("POST: 0x%02x\n", value);
+#endif
        outb(value, 0x80);
 #endif
 }
 
 /* Report a fatal error */
-void die(char *msg)
+void die(const char *msg)
 {
        printk_emerg("%s", msg);
        post_code(0xff);