commands: don't use stale errno when calling fb_open
fb_open returns a pointer and doesn't populate errno, which will
result in a stale errno being evaluated by perror() on failure.
Fix this by using strerror with the proper argument instead at call sites.

While at it, correct the message prefix typo (s/fb_open/fb_open/).

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent afa8665 commit a8a508270be28d5d234e760cc3406cfad188b1d2
@Ahmad Fatoum Ahmad Fatoum authored on 11 Jun 2019
Sascha Hauer committed on 13 Jun 2019
Showing 2 changed files
View
commands/fbtest.c
View
commands/splash.c