Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208555
b: refs/heads/master
c: e2e7e09
h: refs/heads/master
i:
  208553: 299f6b0
  208551: 610c8b5
v: v3
  • Loading branch information
Anton Blanchard authored and Linus Torvalds committed Aug 11, 2010
1 parent 9f13b4f commit c7d7599
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c7ff0d9c92435e836e13aaa8d0e56d4000424bcc
refs/heads/master: e2e7e093259d4c6b73b432122974393d6fcdfc2a
11 changes: 7 additions & 4 deletions trunk/lib/bug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -156,19 +154,24 @@ 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);
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);
Expand Down

0 comments on commit c7d7599

Please sign in to comment.