summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-04-10 14:04:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-23 12:20:03 +0200
commit9880cd69f41ad4bd3665acee3517a769a4c1924f (patch)
treeaaf8a6eef0c8321d3505ff8042ae1f4c5b2f7333
parent0af79fbb6779921d3f1962773adb7fb57d3c89d4 (diff)
downloadbarebox-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>
-rw-r--r--commands/memtest.c8
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[] =