summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthieu <matthieu@openbsd.org>2008-06-11 17:21:46 +0000
committermatthieu <matthieu@openbsd.org>2008-06-11 17:21:46 +0000
commitbaf01cd5bf314256d6221a2ebc64a6740667e100 (patch)
tree654489ef1eba47cc743f7dc6802c1327f7449800
parentDon't use the reference count to create the sensor name; we can end up (diff)
downloadwireguard-openbsd-baf01cd5bf314256d6221a2ebc64a6740667e100.tar.xz
wireguard-openbsd-baf01cd5bf314256d6221a2ebc64a6740667e100.zip
Move a debug printf into #ifdef DEBUG. ok todd@, millert@.
-rw-r--r--sys/dev/pci/agp_i810.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c
index 1b9d4388123..9bf30ef4e15 100644
--- a/sys/dev/pci/agp_i810.c
+++ b/sys/dev/pci/agp_i810.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agp_i810.c,v 1.36 2008/05/16 19:47:54 reyk Exp $ */
+/* $OpenBSD: agp_i810.c,v 1.37 2008/06/11 17:21:46 matthieu Exp $ */
/* $NetBSD: agp_i810.c,v 1.15 2003/01/31 00:07:39 thorpej Exp $ */
/*-
@@ -641,7 +641,9 @@ agp_i810_alloc_memory(struct agp_softc *sc, int type, vsize_t size)
* Bogus mapping of 1 or 4 pages for the hardware cursor.
*/
if (size != AGP_PAGE_SIZE && size != 4 * AGP_PAGE_SIZE) {
+#ifdef DEBUG
printf("agp: trying to map %lu for hw cursor\n", size);
+#endif
return (NULL);
}
}