Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/x86 Merge err printf with the panic(9) message.



details:   https://anonhg.NetBSD.org/src/rev/c8c53eb92501
branches:  trunk
changeset: 768576:c8c53eb92501
user:      jym <jym%NetBSD.org@localhost>
date:      Sun Aug 21 10:00:13 2011 +0000

description:
Merge err printf with the panic(9) message.

Also fix the if () {...} statement with braces, to avoid calling panic()
every time. Hi cherry!

diffstat:

 sys/arch/xen/x86/x86_xpmap.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r f37af1f7d636 -r c8c53eb92501 sys/arch/xen/x86/x86_xpmap.c
--- a/sys/arch/xen/x86/x86_xpmap.c      Sun Aug 21 09:03:20 2011 +0000
+++ b/sys/arch/xen/x86/x86_xpmap.c      Sun Aug 21 10:00:13 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_xpmap.c,v 1.32 2011/08/13 20:24:19 cherry Exp $    */
+/*     $NetBSD: x86_xpmap.c,v 1.33 2011/08/21 10:00:13 jym Exp $       */
 
 /*
  * Copyright (c) 2006 Mathieu Ropert <mro%adviseo.fr@localhost>
@@ -69,7 +69,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_xpmap.c,v 1.32 2011/08/13 20:24:19 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_xpmap.c,v 1.33 2011/08/21 10:00:13 jym Exp $");
 
 #include "opt_xen.h"
 #include "opt_ddb.h"
@@ -343,9 +343,9 @@
 
        XENPRINTK2(("xpq_queue_flush_cache\n"));
        op.cmd = MMUEXT_FLUSH_CACHE;
-       if ((err = HYPERVISOR_mmuext_op(&op, 1, NULL, DOMID_SELF)) < 0)
-               printf("errno == %d\n", err);
-               panic("xpq_flush_cache");
+       if ((err = HYPERVISOR_mmuext_op(&op, 1, NULL, DOMID_SELF)) < 0) {
+               panic("xpq_flush_cache, err %d", err);
+       }
        xpq_queue_unlock();
        splx(s); /* XXX: removeme */
 }



Home | Main Index | Thread Index | Old Index