]> git.dujemihanovic.xyz Git - u-boot.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)
commit7ff12631b44cdbb86c868ce02efd5a06429c7683
treee9ae565120f3a4f666630761e285c7c82d52697b
parent2cb43ef1c22302820061d4d11ddce85872e993e1
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