[U-Boot] [PATCH] 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.
Signed-off-by: Anatolij Gustschin agust@denx.de --- common/spl/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/spl/spl.c b/common/spl/spl.c index c56cc6f..f885ca3 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -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 }

On Tue, Aug 1, 2017 at 10:17 PM, Anatolij Gustschin agust@denx.de wrote:
With debug enabled, SPL output following these debug prints is on the same line and it is hard to read. Fix it.
Signed-off-by: Anatolij Gustschin agust@denx.de
common/spl/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com

On Tue, Aug 01, 2017 at 04:17:12PM +0200, Anatolij Gustschin wrote:
With debug enabled, SPL output following these debug prints is on the same line and it is hard to read. Fix it.
Signed-off-by: Anatolij Gustschin agust@denx.de Reviewed-by: Bin Meng bmeng.cn@gmail.com
Applied to u-boot/master, thanks!
participants (3)
-
Anatolij Gustschin
-
Bin Meng
-
Tom Rini