diff options
Diffstat (limited to 'common/panic_output.c')
-rw-r--r-- | common/panic_output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/panic_output.c b/common/panic_output.c index 144b7a0e19..8d9cf2205d 100644 --- a/common/panic_output.c +++ b/common/panic_output.c @@ -26,6 +26,7 @@ static struct panic_data * const pdata_ptr = PANIC_DATA_PTR; * @param c Character to write. * @return 0 if the character was transmitted, 1 if it was dropped. */ +#ifndef CONFIG_DEBUG_PRINTF static int panic_txchar(void *context, int c) { if (c == '\n') @@ -68,6 +69,7 @@ void panic_printf(const char *format, ...) /* Flush the transmit FIFO */ uart_tx_flush(); } +#endif /** * Display a message and reboot |