Module Name: src Committed By: matt Date: Sat Oct 20 05:33:00 UTC 2012
Modified Files: src/sys/dev/pci: pciconf.c Log Message: If exceeding io/mem windows, show the number that got exceeded. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/dev/pci/pciconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/pciconf.c diff -u src/sys/dev/pci/pciconf.c:1.34 src/sys/dev/pci/pciconf.c:1.35 --- src/sys/dev/pci/pciconf.c:1.34 Fri Jan 27 18:53:08 2012 +++ src/sys/dev/pci/pciconf.c Sat Oct 20 05:33:00 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: pciconf.c,v 1.34 2012/01/27 18:53:08 para Exp $ */ +/* $NetBSD: pciconf.c,v 1.35 2012/10/20 05:33:00 matt Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -65,7 +65,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.34 2012/01/27 18:53:08 para Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.35 2012/10/20 05:33:00 matt Exp $"); #include "opt_pci.h" @@ -367,7 +367,8 @@ query_bus(pciconf_bus_t *parent, pciconf if (pb->io_total > 0) { if (parent->niowin >= MAX_CONF_IO) { - printf("pciconf: too many I/O windows\n"); + printf("pciconf: too many (%d) I/O windows\n", + parent->niowin); goto err; } pb->io_total |= 0xfff; /* Round up */ @@ -383,7 +384,8 @@ query_bus(pciconf_bus_t *parent, pciconf if (pb->mem_total > 0) { if (parent->nmemwin >= MAX_CONF_MEM) { - printf("pciconf: too many MEM windows\n"); + printf("pciconf: too many (%d) MEM windows\n", + parent->nmemwin); goto err; } pb->mem_total |= 0xfffff; /* Round up */