diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-10-13 12:07:54 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:32:42 -0400 |
commit | 178086c86ac9738a76f1462e9ee4cbe8fd3b8c51 (patch) | |
tree | 7981d13e3037b51acfe83b7280804ea73c6b7013 /include/asm-mips | |
parent | 6ec25809c143d875ed17b2e85d1dd894a1f4aba4 (diff) |
Don't print file name and line in die and die_if_kernel.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/system.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index b126545e96ed..330c4e497af3 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h | |||
@@ -434,15 +434,13 @@ extern void *set_vi_srs_handler (int n, void *addr, int regset); | |||
434 | extern void *set_except_vector(int n, void *addr); | 434 | extern void *set_except_vector(int n, void *addr); |
435 | extern void per_cpu_trap_init(void); | 435 | extern void per_cpu_trap_init(void); |
436 | 436 | ||
437 | extern NORET_TYPE void __die(const char *, struct pt_regs *, const char *file, | 437 | extern NORET_TYPE void die(const char *, struct pt_regs *); |
438 | const char *func, unsigned long line) ATTRIB_NORET; | 438 | |
439 | extern void __die_if_kernel(const char *, struct pt_regs *, const char *file, | 439 | static inline void die_if_kernel(const char *str, struct pt_regs *regs) |
440 | const char *func, unsigned long line); | 440 | { |
441 | 441 | if (unlikely(!user_mode(regs))) | |
442 | #define die(msg, regs) \ | 442 | die(str, regs); |
443 | __die(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__) | 443 | } |
444 | #define die_if_kernel(msg, regs) \ | ||
445 | __die_if_kernel(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__) | ||
446 | 444 | ||
447 | extern int stop_a_enabled; | 445 | extern int stop_a_enabled; |
448 | 446 | ||