Re: [PATCH] watchdog: only print critical log when the watchdog fails to be stopped

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/4/25 20:28, Guenter Roeck wrote:


User creates a process and echoes every time to ensure that the system is
normal, the process can be executed properly. Otherwise, the system reboots.
So the critical message keeps printing.

Is it reasonable to change it to info level?


No. The user needs to echo the magic character instead of "0".


Actually, the underlying problem is that the user keeps closing
the watchdog device, which is not the intended use since the watchdog
is supposed to only run while the watchdog device is open. That is
why applications like watchdogd are normally used to manage and
control a watchdog.

The problem here is that the user insists in doing something wrong,
and you want the kernel to adjust to that wrong usage. In a sense,
this is like persistently driving above the speed limit, and instead
of paying the resulting fines (or reducing the speed), the user wants
the penalties to go away or to have them replaced with an informational
notice. That is not how it works, sorry.

If the user insists on their current approach, they will have to live
with the consequences.

Guenter





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux