diff options
author | Alexander van Heukelum <heukelum@mailshack.com> | 2008-07-01 19:31:03 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 02:17:49 -0400 |
commit | e423f49fc8ccd761618748d7139638d8ddc1d16f (patch) | |
tree | c781aa3984ac1c87c0f59d5e37e701237fc75caa /arch/x86/kernel/traps_64.c | |
parent | badc76527f7e29302f0bde3d366c59101fb2ab87 (diff) |
x86: traps_xx: modify __die
if (cond) block -> if (!cond) goto end_of_block
Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/traps_64.c')
-rw-r--r-- | arch/x86/kernel/traps_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/traps_64.c b/arch/x86/kernel/traps_64.c index 03d63b0f5b4b..019a06fcfbdc 100644 --- a/arch/x86/kernel/traps_64.c +++ b/arch/x86/kernel/traps_64.c | |||
@@ -557,9 +557,9 @@ void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, int signr) | |||
557 | do_exit(signr); | 557 | do_exit(signr); |
558 | } | 558 | } |
559 | 559 | ||
560 | int __kprobes __die(const char * str, struct pt_regs * regs, long err) | 560 | int __kprobes __die(const char *str, struct pt_regs *regs, long err) |
561 | { | 561 | { |
562 | printk(KERN_EMERG "%s: %04lx [%u] ", str, err & 0xffff,++die_counter); | 562 | printk(KERN_EMERG "%s: %04lx [%u] ", str, err & 0xffff, ++die_counter); |
563 | #ifdef CONFIG_PREEMPT | 563 | #ifdef CONFIG_PREEMPT |
564 | printk("PREEMPT "); | 564 | printk("PREEMPT "); |
565 | #endif | 565 | #endif |