Skip to contentSkip to conversation

xen: panic rather than BUG if an error is encountered decompressing a bzImage

PATCH New Ian Campbell 1 participant 1 message Mar 6, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: panic rather than BUG if an error is encountered decompressing a bzImage

# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1236327532 0
# Node ID f3c3aed8177e176619ebc285b9815e5478b595d8
# Parent 68a08b6e0200308a3e31688d170043087e66b7af
xen: 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.

xen/arch/x86/bzimage.c +1 -2
diff -r 68a08b6e0200 -r f3c3aed8177e 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)