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>
This commit is contained in:
Tim Harvey 2020-10-12 12:26:41 -07:00 committed by Stefano Babic
parent 74a039403c
commit 9d41628863

View File

@ -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());