diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-04-10 14:04:04 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-04-23 12:20:03 +0200 |
commit | 9880cd69f41ad4bd3665acee3517a769a4c1924f (patch) | |
tree | aaf8a6eef0c8321d3505ff8042ae1f4c5b2f7333 /commands | |
parent | 0af79fbb6779921d3f1962773adb7fb57d3c89d4 (diff) | |
download | barebox-9880cd69f41ad4bd3665acee3517a769a4c1924f.tar.gz barebox-9880cd69f41ad4bd3665acee3517a769a4c1924f.tar.xz |
memtest: cleanup error handling
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/memtest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/memtest.c b/commands/memtest.c index a71576eeb9..dc05e9ed27 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -232,12 +232,12 @@ out: if (ret == -EINTR) printf("\n"); - printf("Memtest failed.\n"); + printf("Memtest failed. Error: %d\n", ret); return 1; - } else { - printf("Memtest successful.\n"); - return 0; } + + printf("Memtest successful.\n"); + return 0; } static const __maybe_unused char cmd_memtest_help[] = |