From: Ian Campbell Subject: [PATCH] xen: panic rather than BUG if an error is encountered decompressing a bzImage Date: Fri, 06 Mar 2009 08:19:46 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: jeremy@goop.org List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Ian Campbell # 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 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)