[PATCH v2] common: console: Fix print complete stdio device list

Bin Meng bmeng.cn at gmail.com
Wed Jan 17 13:39:17 CET 2024


On Wed, Jan 17, 2024 at 8:37 PM Patrice Chotard
<patrice.chotard at foss.st.com> wrote:
>
> 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 at foss.st.com>
>
> ---
>
> Changes in v2:
>   - simplify code suggested by Bin Meng
>
>  common/console.c | 27 ++++++++++++---------------
>  1 file changed, 12 insertions(+), 15 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list