* [PATCH] imx: cpu: terminate line with CR if invalid temp sensor
@ 2020-10-12 19:26 Tim Harvey
2020-10-13 13:14 ` Fabio Estevam
2020-11-02 8:09 ` sbabic at denx.de
0 siblings, 2 replies; 3+ messages in thread
From: Tim Harvey @ 2020-10-12 19:26 UTC (permalink / raw)
To: u-boot
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>
---
arch/arm/mach-imx/cpu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index 4a175cb..a4d8f10 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());
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] imx: cpu: terminate line with CR if invalid temp sensor
2020-10-12 19:26 [PATCH] imx: cpu: terminate line with CR if invalid temp sensor Tim Harvey
@ 2020-10-13 13:14 ` Fabio Estevam
2020-11-02 8:09 ` sbabic at denx.de
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2020-10-13 13:14 UTC (permalink / raw)
To: u-boot
Hi Tim,
On Mon, Oct 12, 2020 at 4:26 PM Tim Harvey <tharvey@gateworks.com> wrote:
>
> 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>
Thanks for the fix:
Reviewed-by: Fabio Estevam <festevam@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] imx: cpu: terminate line with CR if invalid temp sensor
2020-10-12 19:26 [PATCH] imx: cpu: terminate line with CR if invalid temp sensor Tim Harvey
2020-10-13 13:14 ` Fabio Estevam
@ 2020-11-02 8:09 ` sbabic at denx.de
1 sibling, 0 replies; 3+ messages in thread
From: sbabic at denx.de @ 2020-11-02 8:09 UTC (permalink / raw)
To: u-boot
> 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>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
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
=====================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-02 8:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-12 19:26 [PATCH] imx: cpu: terminate line with CR if invalid temp sensor Tim Harvey
2020-10-13 13:14 ` Fabio Estevam
2020-11-02 8:09 ` sbabic at denx.de
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.