Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3872d052 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

ARC: BUG() dumps stack after @msg (@msg now same as in generic BUG))



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: default avatarVineet Gupta <vgupta@synopsys.com>
parent c59414cc
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -22,9 +22,8 @@ void show_kernel_fault_diag(const char *str, struct pt_regs *regs,
void die(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 {								\
#define BUG()	do {								\
	pr_warn("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
	dump_stack();								\
	dump_stack();								\
	pr_warn("Kernel BUG in %s: %s: %d!\n",	\
		__FILE__, __func__,  __LINE__);	\
} while (0)
} while (0)


#define HAVE_ARCH_BUG
#define HAVE_ARCH_BUG