Message ID | 20200515050903.1236-1-sr@denx.de |
---|---|
State | Accepted |
Commit | ce6515ecee1fa060a7a4e79eafc8db5f86d259a0 |
Headers | show |
Series | debug_uart: Add CR before and after announce string | expand |
On Fri, May 15, 2020 at 1:09 PM Stefan Roese <sr at denx.de> wrote: > > Add linefeeds before and after the announce string. This makes the > output easier to read, especially if some text follows the announce > message without a specific additional CR. > > Signed-off-by: Stefan Roese <sr at denx.de> > --- > include/debug_uart.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
diff --git a/include/debug_uart.h b/include/debug_uart.h index 4d1c58075c..714b369e6f 100644 --- a/include/debug_uart.h +++ b/include/debug_uart.h @@ -112,7 +112,7 @@ void printhex8(unsigned int value); void printdec(unsigned int value); #ifdef CONFIG_DEBUG_UART_ANNOUNCE -#define _DEBUG_UART_ANNOUNCE printascii("<debug_uart> "); +#define _DEBUG_UART_ANNOUNCE printascii("\n<debug_uart>\n"); #else #define _DEBUG_UART_ANNOUNCE #endif
Add linefeeds before and after the announce string. This makes the output easier to read, especially if some text follows the announce message without a specific additional CR. Signed-off-by: Stefan Roese <sr at denx.de> --- include/debug_uart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)