On Wed, Jan 17, 2024 at 8:37 PM Patrice Chotard <patrice.chot...@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.chot...@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...@gmail.com>