diff options
Diffstat (limited to 'commands/splash.c')
-rw-r--r-- | commands/splash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/splash.c b/commands/splash.c index abd82873cb..2eb7c5dc39 100644 --- a/commands/splash.c +++ b/commands/splash.c @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: GPL-2.0-only + #include <common.h> #include <command.h> #include <errno.h> @@ -54,9 +56,8 @@ static int do_splash(int argc, char *argv[]) sc = fb_open(fbdev); if (IS_ERR(sc)) { - int ret = -PTR_ERR(sc); - printf("fb_open: %s\n", strerror(ret)); - return ret; + printf("fb_open: %pe\n", sc); + return COMMAND_ERROR; } buf = gui_screen_render_buffer(sc); |