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 Make a XENMEM_decrease_reservation DEBUG pr...



details:   https://anonhg.NetBSD.org/src/rev/935cf4ee00ea
branches:  trunk
changeset: 752471:935cf4ee00ea
user:      jym <jym%NetBSD.org@localhost>
date:      Sat Feb 27 09:22:40 2010 +0000

description:
Make a XENMEM_decrease_reservation DEBUG printf() more meaningful.

diffstat:

 sys/arch/xen/x86/xen_bus_dma.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 64e798b57bae -r 935cf4ee00ea sys/arch/xen/x86/xen_bus_dma.c
--- a/sys/arch/xen/x86/xen_bus_dma.c    Sat Feb 27 09:05:59 2010 +0000
+++ b/sys/arch/xen/x86/xen_bus_dma.c    Sat Feb 27 09:22:40 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xen_bus_dma.c,v 1.17 2010/02/12 01:55:46 jym Exp $     */
+/*     $NetBSD: xen_bus_dma.c,v 1.18 2010/02/27 09:22:40 jym Exp $     */
 /*     NetBSD bus_dma.c,v 1.21 2005/04/16 07:53:35 yamt Exp */
 
 /*-
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_bus_dma.c,v 1.17 2010/02/12 01:55:46 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_bus_dma.c,v 1.18 2010/02/27 09:22:40 jym Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -100,7 +100,8 @@
                    != 1) {
 #ifdef DEBUG
                        printf("xen_alloc_contig: XENMEM_decrease_reservation "
-                           "failed!\n");
+                           "failed: err %d (pa %#" PRIxPADDR " mfn %#lx)\n",
+                           error, pa, mfn);
 #endif
                        xpmap_phys_to_machine_mapping[
                            (pa - XPMAP_OFFSET) >> PAGE_SHIFT] = mfn;



Home | Main Index | Thread Index | Old Index