]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: console: Fix print complete stdio device list
authorPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 17 Jan 2024 12:37:13 +0000 (13:37 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 24 Jan 2024 16:12:11 +0000 (11:12 -0500)
commit9152a51e3c3af8cd766dfaad50aa5bb97678378c
treef3d428e77b78318ed971bd06b712d9014950613f
parent983d6e5bf05a106478e8827b5bc02a6a0b627f36
common: console: Fix print complete stdio device list

In case CONSOLE_MUX and SYS_CONSOLE_IS_IN_ENV are on and
stdin or stdout or stderr are missing in environment, as fallback, get
these either from stdio_devices[std] or stdio_devices[std]->name.

Fixes: 6b343ab38d ("console: Print out complete stdio device list")
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
common/console.c