Display color depth alongside resolution when attaching simplefb(4).
authorfcambus <fcambus@openbsd.org>
Tue, 31 Jul 2018 17:25:55 +0000 (17:25 +0000)
committerfcambus <fcambus@openbsd.org>
Tue, 31 Jul 2018 17:25:55 +0000 (17:25 +0000)
OK kettenis@, deraadt@

sys/dev/fdt/simplefb.c

index 11c1a28..3be2ac6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: simplefb.c,v 1.3 2017/12/18 10:13:45 kettenis Exp $   */
+/*     $OpenBSD: simplefb.c,v 1.4 2018/07/31 17:25:55 fcambus Exp $    */
 /*
  * Copyright (c) 2016 Mark Kettenis
  *
@@ -154,7 +154,7 @@ simplefb_attach(struct device *parent, struct device *self, void *aux)
                ri->ri_flg &= ~RI_CLEAR;
        }
 
-       printf(": %dx%d\n", ri->ri_width, ri->ri_height);
+       printf(": %dx%d, %dbpp\n", ri->ri_width, ri->ri_height, ri->ri_depth);
 
        ri->ri_flg |= RI_VCONS;
        rasops_init(ri, SIMPLEFB_HEIGHT, SIMPLEFB_WIDTH);