diff --git a/bdk/soc/uart.c b/bdk/soc/uart.c index 62a4692..1ccfc76 100644 --- a/bdk/soc/uart.c +++ b/bdk/soc/uart.c @@ -199,9 +199,11 @@ void uart_empty_fifo(u32 idx, u32 which) #include -void uart_print(const char *fmt, ...) +void uart_printf(const char *fmt, ...) { va_list ap; + + //! NOTE: Anything more and it will hang. Heap usage is out of the question. char text[256]; va_start(ap, fmt); diff --git a/bdk/soc/uart.h b/bdk/soc/uart.h index 26a4c7f..c25973c 100644 --- a/bdk/soc/uart.h +++ b/bdk/soc/uart.h @@ -110,7 +110,7 @@ u32 uart_get_IIR(u32 idx); void uart_set_IIR(u32 idx); void uart_empty_fifo(u32 idx, u32 which); #ifdef DEBUG_UART_PORT -void uart_print(const char *fmt, ...); +void uart_printf(const char *fmt, ...); #endif #endif