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

[Xen-changelog] [xen-unstable] Panic rather than BUG if an error is encountered decompressing a bzImage



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1236365705 0
# Node ID 728d8dee880bc6f253b54a0785ae348b68313fa5
# Parent  a44751edcb7637103258d043e92490d561aec186
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>
---
 xen/arch/x86/bzimage.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -r a44751edcb76 -r 728d8dee880b xen/arch/x86/bzimage.c
--- a/xen/arch/x86/bzimage.c    Fri Mar 06 18:54:09 2009 +0000
+++ b/xen/arch/x86/bzimage.c    Fri Mar 06 18:55:05 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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