summaryrefslogtreecommitdiff
path: root/src/include/console
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/console')
-rw-r--r--src/include/console/early_print.h6
-rw-r--r--src/include/console/post_codes.h4
-rw-r--r--src/include/console/uart.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/include/console/early_print.h b/src/include/console/early_print.h
index bd125001d9..173b6feb96 100644
--- a/src/include/console/early_print.h
+++ b/src/include/console/early_print.h
@@ -28,9 +28,9 @@
#define console_log_level(msg_level) (CONFIG_DEFAULT_CONSOLE_LOGLEVEL >= msg_level)
#define CALL_CONSOLE_TX(loglevel, tx_func, x) \
- do { \
- if (console_log_level(loglevel)) { \
- tx_func(x); \
+ do { \
+ if (console_log_level(loglevel)) { \
+ tx_func(x); \
console_tx_flush(); \
} \
} while (0)
diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h
index 9f24199cb7..e1a640cab7 100644
--- a/src/include/console/post_codes.h
+++ b/src/include/console/post_codes.h
@@ -63,7 +63,7 @@
*
* POSTed before ramstage is about to be loaded into memory
*/
-#define POST_PREPARE_RAMSTAGE 0x11
+#define POST_PREPARE_RAMSTAGE 0x11
/**
* \brief Copy/decompression finished; jumping to RAM
@@ -341,7 +341,7 @@
* \n
* Check the console output to see exactly where the failure occurred.
*/
-#define POST_DIE 0xff
+#define POST_DIE 0xff
/*
diff --git a/src/include/console/uart.h b/src/include/console/uart.h
index 2c745dd0d4..45faf0ad6f 100644
--- a/src/include/console/uart.h
+++ b/src/include/console/uart.h
@@ -70,7 +70,7 @@ static inline void __uart_tx_flush(void) {}
#endif
#if CONFIG_GDB_STUB && (ENV_ROMSTAGE || ENV_RAMSTAGE)
-#define CONFIG_UART_FOR_GDB CONFIG_UART_FOR_CONSOLE
+#define CONFIG_UART_FOR_GDB CONFIG_UART_FOR_CONSOLE
static inline void __gdb_hw_init(void) { uart_init(CONFIG_UART_FOR_GDB); }
static inline void __gdb_tx_byte(u8 data) { uart_tx_byte(CONFIG_UART_FOR_GDB, data); }
static inline void __gdb_tx_flush(void) { uart_tx_flush(CONFIG_UART_FOR_GDB); }