diff options
| author | Kever Yang <[email protected]> | 2024-11-08 16:36:23 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-11-17 13:14:09 -0600 |
| commit | 4cc94e898a90dce0ff957fa623a336f153cfd0f4 (patch) | |
| tree | 720f53c489975500192cfced6e5b7c653eb7efee /common/console.c | |
| parent | 1070f01ac10abb40b168933de248df76f3e27220 (diff) | |
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 <[email protected]>
Reviewed-by: Alexander Sverdlin <[email protected]>
Diffstat (limited to 'common/console.c')
| -rw-r--r-- | common/console.c | 6 |
1 files changed, 1 insertions, 5 deletions
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; } |
