summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorgavan <gavan@NetBSD.org>2009-08-02 11:25:50 +0000
committergavan <gavan@NetBSD.org>2009-08-02 11:25:50 +0000
commit14e9ee53d130003a38ebbfa466a1b2c35600ea8f (patch)
tree56a13be389789a8a4e108b3e5cb5dbb4910c34ff /sys/dev
parent01cd53c5dfe5ded625e931191ad7564c5a593353 (diff)
If we're going to complain about exceeding the PCI bandwidth, we may as
well say how much we think we're using.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pciconf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/pciconf.c b/sys/dev/pci/pciconf.c
index 32f245a1dc0..cdad7d28375 100644
--- a/sys/dev/pci/pciconf.c
+++ b/sys/dev/pci/pciconf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pciconf.c,v 1.30 2007/05/24 15:57:58 briggs Exp $ */
+/* $NetBSD: pciconf.c,v 1.31 2009/08/02 11:25:50 gavan Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.30 2007/05/24 15:57:58 briggs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pciconf.c,v 1.31 2009/08/02 11:25:50 gavan Exp $");
#include "opt_pci.h"
@@ -974,8 +974,8 @@ configure_bus(pciconf_bus_t *pb)
max_ltim = pb->max_mingnt * bus_mhz / 4; /* cvt to cycle count */
band = 4000000; /* 0.25us cycles/sec */
if (band < pb->bandwidth_used) {
- printf("PCI bus %d: Warning: Total bandwidth exceeded!?\n",
- pb->busno);
+ printf("PCI bus %d: Warning: Total bandwidth exceeded!? (%d)\n",
+ pb->busno, pb->bandwidth_used);
def_ltim = -1;
} else {
def_ltim = (band - pb->bandwidth_used) / pb->ndevs;