[PATCH] leave loglevel at 7 through sysrq output so you can actuallyread it

From: Martin Bligh
Date: Thu Apr 05 2007 - 18:53:44 EST


We carefully set loglevel to 7, and print the sysrq messsage
as to what event we're doing, but we can't actually see
the output as it sets it back before calling the handler,
rather than after.

Move the assignment down one line.

Signed-off-by: Martin J. Bligh <mbligh@xxxxxxxxxx> diff -aurpN -X /home/mbligh/.diff.exclude linux-2.6.21-rc5-git10/drivers/char/sysrq.c linux-2.6.21-rc5-git10-loglevel/drivers/char/sysrq.c
--- linux-2.6.21-rc5-git10/drivers/char/sysrq.c 2007-04-03 11:23:54.000000000 -0700
+++ linux-2.6.21-rc5-git10-loglevel/drivers/char/sysrq.c 2007-04-05 15:49:40.000000000 -0700
@@ -421,8 +421,8 @@ void __handle_sysrq(int key, struct tty_
*/
if (!check_mask || sysrq_on_mask(op_p->enable_mask)) {
printk("%s\n", op_p->action_msg);
- console_loglevel = orig_log_level;
op_p->handler(key, tty);
+ console_loglevel = orig_log_level;
} else {
printk("This sysrq operation is disabled.\n");
}