Skip to contentSkip to conversation

watchdog: Provide a better stop error message

PATCH In review Prarit Bhargava 2 participants 3 messages Dec 5, 2023 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: Provide a better stop error message

Provide a better stop error message for the case where the watchdog does not stop.

CC Wim Van Sebroeck <[email protected]>
CC Guenter Roeck <[email protected]>
CC David Arcari <[email protected]>
---
 drivers/watchdog/watchdog_dev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/watchdog/watchdog_dev.c +2 -1
index 15df74e11a59..f0084bf7c750 100644
@@ -965,7 +965,8 @@ static int watchdog_release(struct inode *inode, struct file *file)
 
 	/* If the watchdog was not stopped, send a keepalive ping */
 	if (err < 0) {
-		pr_crit("watchdog%d: watchdog did not stop!\n", wdd->id);
+		pr_crit("watchdog%d is still active. Stop by [%s:%d] failed.\n",
+			wdd->id, current->comm, current->pid);
 		watchdog_ping(wdd);
 	}
 
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 3 lines · Prarit Bhargava

Provide a better stop error message for the case where the watchdog does not stop.

Please, no such patches. We are busy enough as is, and we don't need people to change log messages they don't like.

Guenter

#2 lore raw
Quoted 8 lines · Guenter Roeck
Quoted 3 lines · Prarit Bhargava

Provide a better stop error message for the case where the watchdog does not stop.

Please, no such patches. We are busy enough as is, and we don't need people to change log messages they don't like.

It is impossible to tell what actually happened without the additional information (specifically the current thread). That's not a "don't like" as much as it is a "provide better debug output".

P.

Quoted 2 lines

Guenter