Module Name:    src
Committed By:   rin
Date:           Fri Aug  2 10:34:39 UTC 2019

Modified Files:
        src/sys/dev/wsfb: genfb.c

Log Message:
Notify size of shadow framebuffer if enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/dev/wsfb/genfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/wsfb/genfb.c
diff -u src/sys/dev/wsfb/genfb.c:1.67 src/sys/dev/wsfb/genfb.c:1.68
--- src/sys/dev/wsfb/genfb.c:1.67	Mon Jul 29 14:07:37 2019
+++ src/sys/dev/wsfb/genfb.c	Fri Aug  2 10:34:39 2019
@@ -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 @@ genfb_attach(struct genfb_softc *sc, str
 		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,

Reply via email to