[PATCH v6 06/20] stdio: Fix class iteration in stdio_add_devices()

Simon Glass sjg at chromium.org
Mon Oct 17 23:29:21 CEST 2022


There is a complaint in the code that iterates keyboards that we don't
have the _check variant of class iterator but we in fact do, use it.

In the code that iterates video devices there is an attempt to print
errors but the simple iterator does not return a device when there is an
error. Use the _check variant of the iterator as well.

Also format error messages consistently.

Signed-off-by: Michal Suchanek <msuchanek at suse.de>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
v6:
 - drop errno_str
 - fix dev vs vdev in video error print
---
 common/stdio.c | 32 +++++++++++++-------------------
 1 file changed, 13 insertions(+), 19 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list