Sorry, i forgot a pair of {} in sysrq_handle_showregs.
I should stop programming python ;-)
Harald Holzer
-----Forwarded Message-----
From: Helge Deller <[email protected]>
To: Harald Holzer <[email protected]>
Subject: Re: [Patch] sysrq-show-output, kernel 2.4.17
Date: 03 Jan 2002 08:45:36 +0100
On Thursday 03 January 2002 00:25, Harald Holzer wrote:
> Sysrq-m didnt show memory information on the serial console.
>
> This patch sets the console_loglevel to 7 before it calls show_mem,
> show_regs and show_state, to get the output.
>
> Harald Holzer
static void sysrq_handle_showregs(int key, struct pt_regs *pt_regs,
struct kbd_struct *kbd, struct tty_struct *tty) {
+ int orig_loglevel;
+
if (pt_regs)
+ orig_loglevel = console_loglevel;
+ console_loglevel = 7;
show_regs(pt_regs);
+ console_loglevel = orig_loglevel;
+
}
Hi Harald,
I think you misssed a pair of { ... } here...
Helge