aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-09-14 14:53:56 -0700
committerSan Mehat <san@google.com>2009-09-16 12:40:18 -0700
commit5dc3d578c42e291781ea7f7529483253aa4283c9 (patch)
treee50e3ea0417d32c8385efcdcbebe63c34e8a98cb
parent70416fa2dd0095639fd9213b6d923ad442d87ec9 (diff)
downloadqemu-5dc3d578c42e291781ea7f7529483253aa4283c9.tar.gz
apanic: Send magic sequence to suspend ramconsole before we start dumping threads
Signed-off-by: San Mehat <san@google.com>
-rw-r--r--drivers/misc/apanic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/apanic.c b/drivers/misc/apanic.c
index 7a5e1251b36..1872da10e15 100644
--- a/drivers/misc/apanic.c
+++ b/drivers/misc/apanic.c
@@ -459,6 +459,8 @@ static int apanic(struct notifier_block *this, unsigned long event,
if (!threads_offset)
threads_offset = ctx->mtd->writesize;
+ /* Disable ramconsole */
+ printk(KERN_EMERG "!@#$ RAMCONSOLE_DISABLE $#@!");
log_buf_clear();
show_state_filter(0);
threads_len = apanic_write_console(ctx->mtd, threads_offset);