[U-Boot] [PATCH 1/8] dm: cpu: Fix print_cpuinfo() output

Bin Meng bmeng.cn at gmail.com
Sat Oct 6 16:30:17 UTC 2018


Current output of print_cpuinfo() does not have an ending '\n',
neither have a leading 'CPU:' like others. However previously
this used to work on QEMU x86 targets.

It turns out commit c0434407b595 introduced a unified DM version
of print_cpuinfo() that exposed such issue.

Fixes: c0434407b595 ("board_f: Use static print_cpuinfo if CONFIG_CPU is active")
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---

 common/board_f.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/board_f.c b/common/board_f.c
index 213d044..96503ff 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -187,7 +187,7 @@ static int print_cpuinfo(void)
 		return ret;
 	}
 
-	printf("%s", desc);
+	printf("CPU:   %s\n", desc);
 
 	return 0;
 }
-- 
2.7.4



More information about the U-Boot mailing list