[PATCH] [2/66] x86_64: Quieten hangcheck driver

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

 



Every time hangcheck is compiled in it eventually spams the kernel log
with:

Hangcheck: hangcheck value past margin!

This confuses users who usually think it is a generic kernel bug.
Just remove the message. As far as I can see it is useless. The only
value of hangcheck is to reboot the machine if configured.

Cc: joel.becker@xxxxxxxxxx

Signed-off-by: Andi Kleen <ak@xxxxxxx>

 drivers/char/hangcheck-timer.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/char/hangcheck-timer.c
===================================================================
--- linux.orig/drivers/char/hangcheck-timer.c
+++ linux/drivers/char/hangcheck-timer.c
@@ -166,7 +166,7 @@ static void hangcheck_fire(unsigned long
 			printk(KERN_CRIT "Hangcheck: hangcheck is restarting the machine.\n");
 			emergency_restart();
 		} else {
-			printk(KERN_CRIT "Hangcheck: hangcheck value past margin!\n");
+			/* Do nothing - don't spam the kernel log */
 		}
 	}
 	mod_timer(&hangcheck_ticktock, jiffies + (hangcheck_tick*HZ));
-
: send the line "unsubscribe linux-x86_64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux ia64]     [Linux Kernel]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux Hams]
  Powered by Linux