public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] watchdog: imx2_wdt: Improve dev_crit() message
@ 2023-08-22 13:52 Fabio Estevam
  2023-08-22 14:08 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2023-08-22 13:52 UTC (permalink / raw)
  To: linux; +Cc: wim, linux-watchdog, linux-kernel, Fabio Estevam

From: Fabio Estevam <festevam@denx.de>

After issuing a "poweroff" command the board goes through the
expected power-off sequence and turns it off completely:

systemd-shutdown[1]: Powering off.
imx2-wdt 30280000.watchdog: Device shutdown: Expect reboot!
reboot: Power down

The "Expect reboot!" message is misleading because in the
power-off case, no reboot is expected to happen at all.

Avoid the confusion by removing the "Expect reboot!" message.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 drivers/watchdog/imx2_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c
index 1a27665a2f53..42e8ffae18dd 100644
--- a/drivers/watchdog/imx2_wdt.c
+++ b/drivers/watchdog/imx2_wdt.c
@@ -374,7 +374,7 @@ static void imx2_wdt_shutdown(struct platform_device *pdev)
 		 */
 		imx2_wdt_set_timeout(wdog, IMX2_WDT_MAX_TIME);
 		imx2_wdt_ping(wdog);
-		dev_crit(&pdev->dev, "Device shutdown: Expect reboot!\n");
+		dev_crit(&pdev->dev, "Device shutdown.\n");
 	}
 }
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] watchdog: imx2_wdt: Improve dev_crit() message
  2023-08-22 13:52 [PATCH] watchdog: imx2_wdt: Improve dev_crit() message Fabio Estevam
@ 2023-08-22 14:08 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2023-08-22 14:08 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: wim, linux-watchdog, linux-kernel, Fabio Estevam

On Tue, Aug 22, 2023 at 10:52:55AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
> 
> After issuing a "poweroff" command the board goes through the
> expected power-off sequence and turns it off completely:
> 
> systemd-shutdown[1]: Powering off.
> imx2-wdt 30280000.watchdog: Device shutdown: Expect reboot!
> reboot: Power down
> 
> The "Expect reboot!" message is misleading because in the
> power-off case, no reboot is expected to happen at all.
> 
> Avoid the confusion by removing the "Expect reboot!" message.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>

Not sure if the message should be there in the first place.
Anyway,

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

> ---
>  drivers/watchdog/imx2_wdt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/watchdog/imx2_wdt.c b/drivers/watchdog/imx2_wdt.c
> index 1a27665a2f53..42e8ffae18dd 100644
> --- a/drivers/watchdog/imx2_wdt.c
> +++ b/drivers/watchdog/imx2_wdt.c
> @@ -374,7 +374,7 @@ static void imx2_wdt_shutdown(struct platform_device *pdev)
>  		 */
>  		imx2_wdt_set_timeout(wdog, IMX2_WDT_MAX_TIME);
>  		imx2_wdt_ping(wdog);
> -		dev_crit(&pdev->dev, "Device shutdown: Expect reboot!\n");
> +		dev_crit(&pdev->dev, "Device shutdown.\n");
>  	}
>  }
>  
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-22 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-22 13:52 [PATCH] watchdog: imx2_wdt: Improve dev_crit() message Fabio Estevam
2023-08-22 14:08 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox