debug_uart: Remove duplicated carriage return handling
authorBin Meng <bmeng.cn@gmail.com>
Fri, 18 Mar 2016 06:59:04 +0000 (23:59 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:12:26 +0000 (09:12 -0400)
Since commit b391d74 "debug_uart: output CR along with LF", the
handling in puts() is duplicated, not to mention that it should
output carriage return before line feed.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/console.c

index 6a0d11bb04c5337778f249500d506d53ce3c2f3a..12293f383624947cc716319a862df4340c44b1c2 100644 (file)
@@ -515,8 +515,6 @@ void puts(const char *s)
                        int ch = *s++;
 
                        printch(ch);
-                       if (ch == '\n')
-                               printch('\r');
                }
                return;
        }