[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen: panic rather than BUG if an error is encountered decompressing a bzImage



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# 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.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 68a08b6e0200 -r f3c3aed8177e xen/arch/x86/bzimage.c
--- a/xen/arch/x86/bzimage.c    Thu Mar 05 09:54:33 2009 +0000
+++ b/xen/arch/x86/bzimage.c    Fri Mar 06 08:18:52 2009 +0000
@@ -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)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.