Skip to contentSkip to conversation

spl: add newline in debug output

PATCH In review Anatolij Gustschin 3 participants 3 messages Aug 1, 2017 – Sep 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: add newline in debug output

With debug enabled, SPL output following these debug prints is on the same line and it is hard to read. Fix it.

---
 common/spl/spl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
common/spl/spl.c +2 -2
index c56cc6f..f885ca3 100644
@@ -157,7 +157,7 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
 			spl_image->load_addr, spl_image->size);
 #else
 		/* LEGACY image not supported */
-		debug("Legacy boot image support not enabled, proceeding to other boot methods");
+		debug("Legacy boot image support not enabled, proceeding to other boot methods\n");
 		return -EINVAL;
 #endif
 	} else {
@@ -195,7 +195,7 @@ int spl_parse_image_header(struct spl_image_info *spl_image,
 		spl_set_header_raw_uboot(spl_image);
 #else
 		/* RAW image not supported, proceed to other boot methods. */
-		debug("Raw boot image support not enabled, proceeding to other boot methods");
+		debug("Raw boot image support not enabled, proceeding to other boot methods\n");
 		return -EINVAL;
 #endif
 	}
Signature · 1 line
1.9.1
#2 lore raw
In reply to Anatolij Gustschin
Quoted 5 lines · Anatolij Gustschin

With debug enabled, SPL output following these debug prints is on the same line and it is hard to read. Fix it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170913/a663ddd8/attachment.sig>