MLK-14839-2 imx: clean up print info for thermal and reset cause
authorYe Li <ye.li@nxp.com>
Tue, 9 May 2017 09:34:37 +0000 (04:34 -0500)
committerYe Li <ye.li@nxp.com>
Tue, 9 May 2017 09:34:37 +0000 (04:34 -0500)
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>
arch/arm/imx-common/cpu.c

index d494e9b..b4c0492 100644 (file)
@@ -232,12 +232,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
 
 #if defined(CONFIG_DBG_MONITOR)