[PATCH] commands/crc: add a trailing newline after output of checksum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux