image: Add crypto_algo struct for RSA info
[oweals/u-boot.git] / include / debug_uart.h
index a6b7ce8e6eede1a1d74850e22663cb0f973bd63c..0d640b96e7b11337cb2cffb045a5d5887c415fdf 100644 (file)
@@ -105,19 +105,27 @@ void printhex4(uint value);
  */
 void printhex8(uint value);
 
+#ifdef CONFIG_DEBUG_UART_ANNOUNCE
+#define _DEBUG_UART_ANNOUNCE   printascii("<debug_uart> ");
+#else
+#define _DEBUG_UART_ANNOUNCE
+#endif
+
 /*
  * Now define some functions - this should be inserted into the serial driver
  */
 #define DEBUG_UART_FUNCS \
        void printch(int ch) \
        { \
+               if (ch == '\n') \
+                       _debug_uart_putc('\r'); \
                _debug_uart_putc(ch); \
        } \
 \
        void printascii(const char *str) \
        { \
                while (*str) \
-                       _debug_uart_putc(*str++); \
+                       printch(*str++); \
        } \
 \
        static inline void printhex1(uint digit) \
@@ -151,6 +159,7 @@ void printhex8(uint value);
        { \
                board_debug_uart_init(); \
                _debug_uart_init(); \
+               _DEBUG_UART_ANNOUNCE \
        } \
 
 #endif