Module Name: src
Committed By: rin
Date: Tue Aug 9 08:09:44 UTC 2022
Modified Files:
src/sys/arch/mac68k/dev: grf_subr.c
Log Message:
Switch from ``(1 << depth) color'' to ``(depth)-bpp color'' in
attach message.
For depth == 32, fix ``0 color'', and prevent ambiguous ``16Mi color''.
I don't know whether there is 24-bpp graphic card for mac68k or not,
although.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/mac68k/dev/grf_subr.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/arch/mac68k/dev/grf_subr.c
diff -u src/sys/arch/mac68k/dev/grf_subr.c:1.24 src/sys/arch/mac68k/dev/grf_subr.c:1.25
--- src/sys/arch/mac68k/dev/grf_subr.c:1.24 Sat Aug 7 16:18:57 2021
+++ src/sys/arch/mac68k/dev/grf_subr.c Tue Aug 9 08:09:44 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: grf_subr.c,v 1.24 2021/08/07 16:18:57 thorpej Exp $ */
+/* $NetBSD: grf_subr.c,v 1.25 2022/08/09 08:09:44 rin Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf_subr.c,v 1.24 2021/08/07 16:18:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_subr.c,v 1.25 2022/08/09 08:09:44 rin Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -54,7 +54,7 @@ grf_establish(struct grfbus_softc *sc, n
if (gm->psize == 1)
printf("monochrome\n");
else
- printf("%d color\n", 1 << gm->psize);
+ printf("%hu-bpp color\n", gm->psize);
/* Attach grf semantics to the hardware. */
ga.ga_name = "grf";