]> git.baikalelectronics.ru Git - uboot.git/commit
stdio: Fix class iteration in stdio_add_devices()
authorMichal Suchanek <msuchanek@suse.de>
Wed, 12 Oct 2022 19:57:55 +0000 (21:57 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2022 03:17:12 +0000 (21:17 -0600)
commit9f8e5706b8082ac088845f1043d03aa8aaf75dd8
treee9ae565120f3a4f666630761e285c7c82d52697b
parent8f11b0cbc52172125482901ddfd84aebf36417fe
stdio: Fix class iteration in stdio_add_devices()

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@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/stdio.c