Skip to content

Commit

Permalink
ARC: BUG() dumps stack after @msg (@msg now same as in generic BUG))
Browse files Browse the repository at this point in the history
ARC specific version (doesn't panic) still makes sense so that generic
code calling BUG doesn't panic and helps debugging more

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  • Loading branch information
Vineet Gupta committed Oct 13, 2014
1 parent c59414c commit 3872d05
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions arch/arc/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ void show_kernel_fault_diag(const char *str, struct pt_regs *regs,
unsigned long address);
void die(const char *str, struct pt_regs *regs, unsigned long address);

#define BUG() do { \
dump_stack(); \
pr_warn("Kernel BUG in %s: %s: %d!\n", \
__FILE__, __func__, __LINE__); \
#define BUG() do { \
pr_warn("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
dump_stack(); \
} while (0)

#define HAVE_ARCH_BUG
Expand Down

0 comments on commit 3872d05

Please sign in to comment.