From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: barebox@lists.infradead.org
Cc: kernel@pengutronix.de
Subject: [PATCH] commands/crc: add a trailing newline after output of checksum
Date: Wed, 27 Jun 2012 10:13:13 +0200 [thread overview]
Message-ID: <1340784793-22100-1-git-send-email-u.kleine-koenig@pengutronix.de> (raw)
Without this patch the next command prompt starts directly after the
calculated check sum. While at it also fix the coding style.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
commands/crc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/crc.c b/commands/crc.c
index df22941..81aa340 100644
--- a/commands/crc.c
+++ b/commands/crc.c
@@ -71,7 +71,7 @@ static int file_crc(char* filename, ulong start, ulong size, ulong *crc,
*total += now;
}
- printf ("CRC32 for %s 0x%08lx ... 0x%08lx ==> 0x%08lx",
+ printf("CRC32 for %s 0x%08lx ... 0x%08lx ==> 0x%08lx\n",
filename, start, start + *total - 1, *crc);
out_free:
--
1.7.10
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2012-06-27 8:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 8:13 Uwe Kleine-König [this message]
2012-06-27 8:25 ` Sascha Hauer
2012-06-27 9:08 ` [PATCH] commands/crc: assert newline after output with big offsets Uwe Kleine-König
2012-07-17 8:23 ` Uwe Kleine-König
2012-07-17 18:42 ` Sascha Hauer
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=1340784793-22100-1-git-send-email-u.kleine-koenig@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=kernel@pengutronix.de \
/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