Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wsfb Notify size of shadow framebuffer if enabled.
details: https://anonhg.NetBSD.org/src/rev/5d93545111c1
branches: trunk
changeset: 1002492:5d93545111c1
user: rin <rin%NetBSD.org@localhost>
date: Fri Aug 02 10:34:39 2019 +0000
description:
Notify size of shadow framebuffer if enabled.
diffstat:
sys/dev/wsfb/genfb.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 911dfb8b5339 -r 5d93545111c1 sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c Fri Aug 02 05:22:14 2019 +0000
+++ b/sys/dev/wsfb/genfb.c Fri Aug 02 10:34:39 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb.c,v 1.67 2019/07/29 14:07:37 rin Exp $ */
+/* $NetBSD: genfb.c,v 1.68 2019/08/02 10:34:39 rin Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.67 2019/07/29 14:07:37 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.68 2019/08/02 10:34:39 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -261,6 +261,9 @@
sc->sc_shadowfb = kmem_alloc(sc->sc_fbsize, KM_SLEEP);
if (sc->sc_want_clear == false)
memcpy(sc->sc_shadowfb, sc->sc_fbaddr, sc->sc_fbsize);
+ aprint_verbose_dev(sc->sc_dev,
+ "shadow framebuffer enabled, size %zu KB\n",
+ sc->sc_fbsize >> 10);
}
vcons_init(&sc->vd, sc, &sc->sc_defaultscreen_descr,
Home |
Main Index |
Thread Index |
Old Index