]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: cpu: terminate line with CR if invalid temp sensor
authorTim Harvey <tharvey@gateworks.com>
Mon, 12 Oct 2020 19:26:41 +0000 (12:26 -0700)
committerStefano Babic <sbabic@denx.de>
Sun, 1 Nov 2020 14:52:58 +0000 (15:52 +0100)
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>
arch/arm/mach-imx/cpu.c

index 4a175cb86f45fca9458c53fae8a2f990c67d0bec..a4d8f101b66c4069ddf1c076a36c806b2833de33 100644 (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());