From e298d4d6a880c2da34b7e697ca350134fff38d07 Mon Sep 17 00:00:00 2001 From: jym Date: Sun, 21 Aug 2011 10:00:13 +0000 Subject: [PATCH] Merge err printf with the panic(9) message. Also fix the if () {...} statement with braces, to avoid calling panic() every time. Hi cherry! --- sys/arch/xen/x86/x86_xpmap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/arch/xen/x86/x86_xpmap.c b/sys/arch/xen/x86/x86_xpmap.c index b02745218a5c..22b35f55331e 100644 --- a/sys/arch/xen/x86/x86_xpmap.c +++ b/sys/arch/xen/x86/x86_xpmap.c @@ -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 @@ -69,7 +69,7 @@ #include -__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 @@ xpq_flush_cache(void) 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 */ }