console: Use printascii for lowlevel debug string
authorKever Yang <kever.yang@rock-chips.com>
Fri, 8 Nov 2024 08:36:23 +0000 (16:36 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 17 Nov 2024 19:14:09 +0000 (13:14 -0600)
The lowlevel debug with CONFIG_DEBUG_UART has printascii for string
print, and no need to convert to use printch now.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
common/console.c

index 2222470..863ac6a 100644 (file)
@@ -745,11 +745,7 @@ void puts(const char *s)
        }
 
        if (IS_ENABLED(CONFIG_DEBUG_UART) && !(gd->flags & GD_FLG_SERIAL_READY)) {
-               while (*s) {
-                       int ch = *s++;
-
-                       printch(ch);
-               }
+               printascii(s);
                return;
        }