From: Fabio Estevam Date: Wed, 23 Aug 2023 17:59:09 +0000 (-0300) Subject: thermal: imx_tmu: Increase the log level for high temperatures X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~15^2~2 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=13a74958ec3b3a70b3425103e5824a2b87dc4074;p=uboot.git thermal: imx_tmu: Increase the log level for high temperatures dev_info() message is not printed by default. Increase the log level to dev_crit(). This allows the critical messages related to the temperature getting beyong the alert threshold to be displayed. Signed-off-by: Fabio Estevam Reviewed-by: Tom Rini --- diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c index d9a04eaf79..d2ea084d2d 100644 --- a/drivers/thermal/imx_tmu.c +++ b/drivers/thermal/imx_tmu.c @@ -238,7 +238,7 @@ int imx_tmu_get_temp(struct udevice *dev, int *temp) return ret; while (cpu_tmp >= pdata->alert) { - dev_info(dev, "CPU Temperature (%dC) has beyond alert (%dC), close to critical (%dC) waiting...\n", + dev_crit(dev, "CPU Temperature (%dC) has beyond alert (%dC), close to critical (%dC) waiting...\n", cpu_tmp, pdata->alert, pdata->critical); mdelay(pdata->polling_delay); ret = read_temperature(dev, &cpu_tmp);