diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-03-06 18:55:05 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-03-06 18:55:05 +0000 |
commit | adfb6cc3c048f4580e4925fcbcf32ef2565972e4 (patch) | |
tree | 314e20baa870f68ff0b4ab54fa8355eaaf391c7e /xen/arch/x86/bzimage.c | |
parent | 2ff253bcb673ece307074c6b20290ef0d37f2e8f (diff) | |
download | xen-adfb6cc3c048f4580e4925fcbcf32ef2565972e4.tar.gz xen-adfb6cc3c048f4580e4925fcbcf32ef2565972e4.tar.bz2 xen-adfb6cc3c048f4580e4925fcbcf32ef2565972e4.zip |
Panic rather than BUG if an error is encountered decompressing a bzImage
This gives a more useful error message without an unnecessary stack dump.
Noticed by Jeremy Fitzhardinge.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/arch/x86/bzimage.c')
-rw-r--r-- | xen/arch/x86/bzimage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/arch/x86/bzimage.c b/xen/arch/x86/bzimage.c index 37bc78eec2..4843677916 100644 --- a/xen/arch/x86/bzimage.c +++ b/xen/arch/x86/bzimage.c @@ -58,8 +58,7 @@ static void flush_window(void); static __init void error(char *x) { - printk("%s\n", x); - BUG(); + panic("%s\n", x); } static __init int fill_inbuf(void) |