diff options
author | Ye Li <ye.li@nxp.com> | 2017-05-09 04:34:37 -0500 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2017-11-22 11:19:49 +0100 |
commit | 8d3bb7ea495581cd8d69f0db2a4d97e2e836766b (patch) | |
tree | 9f858aec729ede29bfcc75446234a59bd864e11c | |
parent | 1d4ece729e7d1652acca2605125bba95a5e674e5 (diff) |
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 <ye.li@nxp.com>
(cherry picked from commit f84b9d512f92b66076357820b1003a1006ff619d)
-rw-r--r-- | arch/arm/imx-common/cpu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c index 632facabd70..aa644745b0c 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()); |