diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-12-02 20:20:56 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-12-02 20:20:56 +0000 |
commit | b9780804df075af083691bd9746776dbbadb38dd (patch) | |
tree | 577bb4cd951c1207cb63757597b8ae90f5b8535b /sys/dev/vesa | |
parent | 1659880111098d72d04a0bd82814b15331574f01 (diff) |
Make a debugging printf conditionnal to VESABIOSVERBOSE.
ok miod@, gwk@, deraadt@
Diffstat (limited to 'sys/dev/vesa')
-rw-r--r-- | sys/dev/vesa/vesafb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/vesa/vesafb.c b/sys/dev/vesa/vesafb.c index e1d6c9b1514..701a1157fb1 100644 --- a/sys/dev/vesa/vesafb.c +++ b/sys/dev/vesa/vesafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vesafb.c,v 1.1 2006/11/27 18:04:28 gwk Exp $ */ +/* $OpenBSD: vesafb.c,v 1.2 2006/12/02 20:20:55 matthieu Exp $ */ /*- * Copyright (c) 2006 Jared D. McNeill <jmcneill@invisible.ca> @@ -194,8 +194,9 @@ vesafb_find_mode(struct vga_pci_softc *sc, int width, int height, int bpp) if (vesabios_softc == NULL || vesabios_softc->sc_nmodes == 0) return -1; - +#ifdef VESABIOSVERBOSE printf("vesafb_find_mode %d %d %d\n", width, height, bpp); +#endif /* Choose a graphics mode */ for (i = 0; i < vesabios_softc->sc_nmodes; i++) { vesafb_get_mode_info(sc, vesabios_softc->sc_modes[i], &mi); |