aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBin Meng2018-10-10 22:06:55 -0700
committerSimon Glass2018-11-14 09:16:27 -0800
commitecfe66330d3093b701a26363470c0b6a32a02d89 (patch)
tree458f490fb6c859e02ba11f68a81f2dfb84b133e1 /common
parent5d6c61ac404c5c7c463ea6ee216145f29a603f60 (diff)
dm: cpu: Fix print_cpuinfo() output
It was observed that current output of print_cpuinfo() on QEMU x86 targets does not have an ending '\n', neither have a leading 'CPU:' any more. However it used to have these before. It turns out commit c0434407b595 introduced a unified DM version of print_cpuinfo() that exposed such issue on QEMU x86. Fixes: c0434407b595 ("board_f: Use static print_cpuinfo if CONFIG_CPU is active") Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 213d0440667..96503ff8d3c 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;
}