diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-03-17 21:19:27 -0800 |
|---|---|---|
| committer | Dave Jones <davej@codemonkey.org.uk> | 2003-03-17 21:19:27 -0800 |
| commit | 93b24206d03718593c44708d9eefc70742cb48bb (patch) | |
| tree | 845248b480d3286351c07337acde5e0f278724d8 /arch/ppc/kernel | |
| parent | 9c58c3bd4cb6cd948328b2bd7833007770ab8b8c (diff) | |
[PATCH] OOPS instance counters
Patch from "Randy.Dunlap" <rddunlap@osdl.org>
Adds an oops counter to the oops messages, such as:
Oops: 0002 [#2]
So we can tell whether oops reports refer to the first oops, or to some
less-interesting followon oops.
Diffstat (limited to 'arch/ppc/kernel')
| -rw-r--r-- | arch/ppc/kernel/traps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc/kernel/traps.c b/arch/ppc/kernel/traps.c index a0147b2090e1..91afc431e045 100644 --- a/arch/ppc/kernel/traps.c +++ b/arch/ppc/kernel/traps.c @@ -86,13 +86,14 @@ spinlock_t die_lock = SPIN_LOCK_UNLOCKED; void die(const char * str, struct pt_regs * fp, long err) { + static int die_counter; console_verbose(); spin_lock_irq(&die_lock); #ifdef CONFIG_PMAC_BACKLIGHT set_backlight_enable(1); set_backlight_level(BACKLIGHT_MAX); #endif - printk("Oops: %s, sig: %ld\n", str, err); + printk("Oops: %s, sig: %ld [#%d]\n", str, err, ++die_counter); show_regs(fp); spin_unlock_irq(&die_lock); /* do_exit() should take care of panic'ing from an interrupt |
