From a52330809b2e3561b6d451a350980f57df547f6c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 25 Jul 2021 21:02:23 -0400 Subject: [PATCH] startup: Prettyify video depth dump Use the right unit. for rgb10x2, this prints "30bpp" instead of "0x1E". Signed-off-by: Alyssa Rosenzweig --- src/startup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/startup.c b/src/startup.c index b20c63b6..128c95e2 100644 --- a/src/startup.c +++ b/src/startup.c @@ -59,7 +59,7 @@ void dump_boot_args(struct boot_args *ba) printf(" stride: 0x%lx\n", ba->video.stride); printf(" width: %lu\n", ba->video.width); printf(" height: %lu\n", ba->video.height); - printf(" depth: 0x%lx\n", ba->video.depth); + printf(" depth: %lubpp\n", ba->video.depth); printf(" machine_type: %d\n", ba->machine_type); printf(" devtree: %p\n", ba->devtree); printf(" devtree_size: 0x%x\n", ba->devtree_size);