printk,kdb: capture printk() when in kdb shell
[safe/jmp/linux-2.6] / kernel / debug / kdb / kdb_bt.c
index 483fa4e..2f62fe8 100644 (file)
@@ -23,6 +23,7 @@ static void kdb_show_stack(struct task_struct *p, void *addr)
 {
        int old_lvl = console_loglevel;
        console_loglevel = 15;
+       kdb_trap_printk++;
        kdb_set_current_task(p);
        if (addr) {
                show_stack((struct task_struct *)p, addr);
@@ -36,6 +37,7 @@ static void kdb_show_stack(struct task_struct *p, void *addr)
                show_stack(p, NULL);
        }
        console_loglevel = old_lvl;
+       kdb_trap_printk--;
 }
 
 /*