summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2014-07-28 15:00:28 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2014-07-28 15:00:28 +0000
commit283d87d043c9cb54946cba43c7de5380099efbae (patch)
tree71e127af9aea9b9fbb04f9a14e925789c7b6ce71 /sys/arch/macppc/pci
parent60d95225248225647acfbf1ab5e6b4084b90bf1a (diff)
Limit the "aperture needed" printf to ramdisks via RAMDISK_HOOKS.
Originally with SMALL_KERNEL until sebastia@ pointed out that not all ramdisks are built with SMALL_KERNEL. ok deraadt@ kettenis@
Diffstat (limited to 'sys/arch/macppc/pci')
-rw-r--r--sys/arch/macppc/pci/vgafb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c
index 5bb859ea457..1e9def6fcca 100644
--- a/sys/arch/macppc/pci/vgafb.c
+++ b/sys/arch/macppc/pci/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.59 2014/07/22 04:42:51 jsg Exp $ */
+/* $OpenBSD: vgafb.c,v 1.60 2014/07/28 15:00:27 jsg Exp $ */
/* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */
/*
@@ -167,8 +167,10 @@ vgafb_attach(struct device *parent, struct device *self, void *aux)
vgafb_burn(sc, WSDISPLAYIO_VIDEO_ON, 0); /* paranoia */
}
+#ifdef RAMDISK_HOOKS
if (vga_aperture_needed(pa))
printf("%s: aperture needed\n", sc->sc_dev.dv_xname);
+#endif
config_found(self, &waa, wsemuldisplaydevprint);
}