From 8d3bb7ea495581cd8d69f0db2a4d97e2e836766b Mon Sep 17 00:00:00 2001 From: Ye Li Date: Tue, 9 May 2017 04:34:37 -0500 Subject: MLK-14839-2 imx: clean up print info for thermal and reset cause Clean up the print info, so that the reset cause print can display in a new line. Signed-off-by: Ye Li (cherry picked from commit f84b9d512f92b66076357820b1003a1006ff619d) --- arch/arm/imx-common/cpu.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c index 632facabd7..aa644745b0 100644 --- a/arch/arm/imx-common/cpu.c +++ b/arch/arm/imx-common/cpu.c @@ -222,12 +222,13 @@ int print_cpuinfo(void) ret = thermal_get_temp(thermal_dev, &cpu_tmp); if (!ret) - printf(" at %dC\n", cpu_tmp); + printf(" at %dC", cpu_tmp); else - debug(" - invalid sensor data\n"); + debug(" - invalid sensor data"); } else { - debug(" - invalid sensor device\n"); + debug(" - invalid sensor device"); } + printf("\n"); #endif printf("Reset cause: %s\n", get_reset_cause()); -- cgit v1.2.3