summaryrefslogtreecommitdiffstats
path: root/commands/memtest.c
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 /commands/memtest.c
parent0af79fbb6779921d3f1962773adb7fb57d3c89d4 (diff)
downloadbarebox-9880cd69f41ad4bd3665acee3517a769a4c1924f.tar.gz
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/memtest.c')
-rw-r--r--commands/memtest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/memtest.c b/commands/memtest.c
index a71576e..dc05e9e 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[] =