public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] leave loglevel at 7 through sysrq output so you can actually read it
@ 2007-04-05 22:53 Martin Bligh
  2007-04-06 16:31 ` Roman Zippel
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Bligh @ 2007-04-05 22:53 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

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@google.com>

[-- Attachment #2: linux-2.6.21-rc5-git10-loglevel --]
[-- Type: text/plain, Size: 655 bytes --]

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");
 		}

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

end of thread, other threads:[~2007-04-06 17:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05 22:53 [PATCH] leave loglevel at 7 through sysrq output so you can actually read it Martin Bligh
2007-04-06 16:31 ` Roman Zippel
2007-04-06 16:33   ` Martin Bligh
2007-04-06 17:06     ` Roman Zippel
2007-04-06 17:35       ` Roman Zippel

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