[PATCH 1/3] memtest: cleanup error handling
Alexander Aring
alex.aring at gmail.com
Thu Apr 10 05:04:04 PDT 2014
Signed-off-by: Alexander Aring <alex.aring at gmail.com>
---
commands/memtest.c | 8 ++++----
1 file 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[] =
--
1.9.1
More information about the barebox
mailing list