From: Kever Yang Date: Fri, 8 Nov 2024 08:36:23 +0000 (+0800) Subject: console: Use printascii for lowlevel debug string X-Git-Tag: v2025.04-rc1~60^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cc94e898a90dce0ff957fa623a336f153cfd0f4;p=pandora-u-boot.git console: Use printascii for lowlevel debug string 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 Reviewed-by: Alexander Sverdlin --- diff --git a/common/console.c b/common/console.c index 22224701e45..863ac6aa9dc 100644 --- a/common/console.c +++ b/common/console.c @@ -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; }