aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/cpu.c
diff options
context:
space:
mode:
authorTim Harvey2020-10-12 12:26:41 -0700
committerStefano Babic2020-11-01 15:52:58 +0100
commit9d41628863c9a2f34da0b8f3a19af3114f999e1c (patch)
treec6a2410ef15364b9971aad48fc30b8cc67ae16b4 /arch/arm/mach-imx/cpu.c
parent74a039403c10e460ddd668f4e907689f64b70507 (diff)
imx: cpu: terminate line with CR if invalid temp sensor
Ensure we terminate the line with a CR if we get an invalid sensor device or reading. Signed-off-by: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Diffstat (limited to 'arch/arm/mach-imx/cpu.c')
-rw-r--r--arch/arm/mach-imx/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index 4a175cb86f4..a4d8f101b66 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -223,12 +223,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");
} else {
debug(" - invalid sensor device\n");
}
+ puts("\n");
#endif
printf("Reset cause: %s\n", get_reset_cause());