]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
thermal: imx_tmu: Increase the log level for high temperatures
authorFabio Estevam <festevam@denx.de>
Wed, 23 Aug 2023 17:59:09 +0000 (14:59 -0300)
committerStefano Babic <stefano.babic@swupdate.org>
Mon, 4 Sep 2023 15:26:44 +0000 (17:26 +0200)
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 <festevam@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/thermal/imx_tmu.c

index d9a04eaf79fb73db33fc20b05cd97936892d329d..d2ea084d2d2faaf88b084c7026b09ee698d922bb 100644 (file)
@@ -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);