imx: cpu: terminate line with CR if invalid temp sensor
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- arch/arm/mach-imx/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-imx/cpu.c +2 -1
@@ -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 ());
Signature · 1 line
2.7.4
Fabio Estevam
reviewerPATCH 1/1 imx: cpu: terminate line with CR if invalid temp sensor
Hi Tim,
Quoted 5 lines · Tim Harvey
Ensure we terminate the line with a CR if we get an invalid sensor device or reading.
Signed-off-by Tim Harvey <[email protected]>
Thanks for the fix:
Reviewed-by Fabio Estevam <[email protected]>
PATCH 1/1 imx: cpu: terminate line with CR if invalid temp sensor
In reply to Tim HarveyQuoted 4 lines
Ensure we terminate the line with a CR if we get an invalid sensor device or reading.
Signed-off-by Tim Harvey <[email protected]>Reviewed-by Fabio Estevam <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================