From 7ef7c58c4901ba0443f5d13e7b33d58f0247494e Mon Sep 17 00:00:00 2001 From: miod Date: Mon, 26 Jan 2015 20:25:38 +0000 Subject: [PATCH] Print frame buffer resolution at attach time. --- sys/arch/sparc64/dev/creator.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c index 99a162a073e..f8ec0530d81 100644 --- a/sys/arch/sparc64/dev/creator.c +++ b/sys/arch/sparc64/dev/creator.c @@ -1,4 +1,4 @@ -/* $OpenBSD: creator.c,v 1.48 2014/07/12 18:44:43 tedu Exp $ */ +/* $OpenBSD: creator.c,v 1.49 2015/01/26 20:25:38 miod Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -169,7 +169,7 @@ creator_attach(parent, self, aux) DAC_WRITE(sc, FFB_DAC_TYPE, DAC_TYPE_GETREV); sc->sc_dacrev = DAC_READ(sc, FFB_DAC_VALUE) >> 28; - printf(", model %s, dac %u\n", model, sc->sc_dacrev); + printf(", model %s, dac %u", model, sc->sc_dacrev); if (sc->sc_type == FFB_AFB) sc->sc_dacrev = 10; @@ -179,6 +179,8 @@ creator_attach(parent, self, aux) sc->sc_sunfb.sf_linebytes = 8192; sc->sc_sunfb.sf_fbsize = sc->sc_sunfb.sf_height * 8192; + printf(", %dx%d\n", sc->sc_sunfb.sf_width, sc->sc_sunfb.sf_height); + sc->sc_sunfb.sf_ro.ri_bits = (void *)bus_space_vaddr(sc->sc_bt, sc->sc_pixel_h); sc->sc_sunfb.sf_ro.ri_hw = sc; -- 2.20.1