From: Alexander Aring <alex.aring@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 1/3] memtest: cleanup error handling
Date: Thu, 10 Apr 2014 14:04:04 +0200 [thread overview]
Message-ID: <1397131446-4816-2-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1397131446-4816-1-git-send-email-alex.aring@gmail.com>
Signed-off-by: Alexander Aring <alex.aring@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-04-10 16:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-10 12:04 [PATCH 0/3] memtest: small cleanup Alexander Aring
2014-04-10 12:04 ` Alexander Aring [this message]
2014-04-10 12:04 ` [PATCH 2/3] memtest: cleanup requests of regions Alexander Aring
2014-04-10 12:04 ` [PATCH 3/3] memtest: copyright to UPPER case and fix typo Alexander Aring
2014-04-23 10:25 ` [PATCH 0/3] memtest: small cleanup Sascha Hauer
2014-04-23 12:02 ` Alexander Aring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1397131446-4816-2-git-send-email-alex.aring@gmail.com \
--to=alex.aring@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox