diff options
| author | David S. Miller <davem@davemloft.net> | 2010-08-16 14:09:34 -0700 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-08-16 14:09:34 -0700 | 
| commit | 300a103d1504134f8c4a7e831f995e917ea9b1e4 (patch) | |
| tree | 7f94d5fff513d132bd0b57a9e3bd96c4cc80d707 /lib/bug.c | |
| parent | 0a492896ac07336c98f37ad7fab4a6387b6ada78 (diff) | |
| parent | da5cabf80e2433131bf0ed8993abc0f7ea618c73 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'lib/bug.c')
| -rw-r--r-- | lib/bug.c | 12 | 
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/bug.c b/lib/bug.c index f13daf43521..7cdfad88128 100644 --- a/lib/bug.c +++ b/lib/bug.c @@ -136,8 +136,6 @@ enum bug_trap_type report_bug(unsigned long bugaddr, struct pt_regs *regs)  	bug = find_bug(bugaddr); -	printk(KERN_EMERG "------------[ cut here ]------------\n"); -  	file = NULL;  	line = 0;  	warning = 0; @@ -156,19 +154,25 @@ enum bug_trap_type report_bug(unsigned long bugaddr, struct pt_regs *regs)  	if (warning) {  		/* this is a WARN_ON rather than BUG/BUG_ON */ +		printk(KERN_WARNING "------------[ cut here ]------------\n"); +  		if (file) -			printk(KERN_ERR "Badness at %s:%u\n", +			printk(KERN_WARNING "WARNING: at %s:%u\n",  			       file, line);  		else -			printk(KERN_ERR "Badness at %p " +			printk(KERN_WARNING "WARNING: at %p "  			       "[verbose debug info unavailable]\n",  			       (void *)bugaddr); +		print_modules();  		show_regs(regs); +		print_oops_end_marker();  		add_taint(BUG_GET_TAINT(bug));  		return BUG_TRAP_TYPE_WARN;  	} +	printk(KERN_EMERG "------------[ cut here ]------------\n"); +  	if (file)  		printk(KERN_CRIT "kernel BUG at %s:%u!\n",  		       file, line);  | 
