ia64/xen-unstable

changeset 19280:728d8dee880b

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>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 06 18:55:05 2009 +0000 (2009-03-06)
parents a44751edcb76
children 6c7ae9c859f5
files xen/arch/x86/bzimage.c
line diff
     1.1 --- a/xen/arch/x86/bzimage.c	Fri Mar 06 18:54:09 2009 +0000
     1.2 +++ b/xen/arch/x86/bzimage.c	Fri Mar 06 18:55:05 2009 +0000
     1.3 @@ -58,8 +58,7 @@ static void flush_window(void);
     1.4  
     1.5  static __init void error(char *x)
     1.6  {
     1.7 -    printk("%s\n", x);
     1.8 -    BUG();
     1.9 +    panic("%s\n", x);
    1.10  }
    1.11  
    1.12  static __init int fill_inbuf(void)