diff options
author | Keir Fraser <keir@xen.org> | 2011-01-18 09:01:57 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-01-18 09:01:57 +0000 |
commit | 21b43fc5c06418d0e0feefe529c74037c9ed671a (patch) | |
tree | 34ec8979cc5eb2feeab59ee6ef276ec935ce1e7c /xen/include/asm-x86/bug.h | |
parent | 86e440aebc540486dc37fa72f0e7b03dafd616e9 (diff) | |
download | xen-21b43fc5c06418d0e0feefe529c74037c9ed671a.tar.gz xen-21b43fc5c06418d0e0feefe529c74037c9ed671a.tar.bz2 xen-21b43fc5c06418d0e0feefe529c74037c9ed671a.zip |
xen: stringify assertion condition for printing sooner.
So that:
(XEN) Assertion '!(((*({ unsigned long __ptr; __asm__ ("" :
"=r"(__ptr) : "0"(&per_cpu____preempt_count));
(typeof(&per_cpu____preempt_count)) (__ptr +
(get_cpu_info()->per_cpu_offset)); }))) ||
((irq_stat[(((get_cpu_info()->processor_id)1...
becomes:
(XEN) Assertion '"!in_atomic()"' failed at softirq.c:61
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/bug.h')
-rw-r--r-- | xen/include/asm-x86/bug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/bug.h b/xen/include/asm-x86/bug.h index 60efca2244..05083e0168 100644 --- a/xen/include/asm-x86/bug.h +++ b/xen/include/asm-x86/bug.h @@ -40,7 +40,7 @@ struct bug_frame { asm volatile ( \ "ud2 ; ret %0" BUG_STR(1) BUG_STR(2) \ : : "i" (BUGFRAME_assert | (__LINE__<<2)), \ - "i" (__FILE__), "i" (#p) ) + "i" (__FILE__), "i" (p) ) #endif /* __X86_BUG_H__ */ |