Merge tag 'armsoc-fixes-nc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
[linux-2.6-block.git] / lib / bug.c
index cff145f032a550ff1703208cbadc033e2a6336b6..bc3656e944d29bd431d1b0fb8629f0ff090c676d 100644 (file)
--- a/lib/bug.c
+++ b/lib/bug.c
@@ -167,19 +167,8 @@ 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 */
-               pr_warn("------------[ cut here ]------------\n");
-
-               if (file)
-                       pr_warn("WARNING: at %s:%u\n", file, line);
-               else
-                       pr_warn("WARNING: at %p [verbose debug info unavailable]\n",
-                               (void *)bugaddr);
-
-               print_modules();
-               show_regs(regs);
-               print_oops_end_marker();
-               /* Just a warning, don't kill lockdep. */
-               add_taint(BUG_GET_TAINT(bug), LOCKDEP_STILL_OK);
+               __warn(file, line, (void *)bugaddr, BUG_GET_TAINT(bug), regs,
+                      NULL);
                return BUG_TRAP_TYPE_WARN;
        }