Skip to contentSkip to conversation

video: simplefb: Fix build warn with CONFIG_FDT_64BIT=n

PATCH In review Leo Yu-Chi Liang 2 participants 2 messages Oct 9, 2024 – Oct 22, 2024 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 video: simplefb: Fix build warn with CONFIG_FDT_64BIT=n

From: LekKit <[email protected]>

Fix compile warning with !CONFIG_FDT_64BIT by
casting the variable in the debug print.

---
 drivers/video/simplefb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/simplefb.c +1 -1
index cb518b149c..55996c8560 100644
@@ -27,7 +27,7 @@ static int simple_video_probe(struct udevice *dev)
 		return -EINVAL;
 	}
 
-	debug("%s: base=%llx, size=%llu\n", __func__, base, size);
+	debug("%s: base=%llx, size=%llu\n", __func__, (unsigned long long)base, (unsigned long long)size);
 
 	/*
 	 * TODO is there some way to reserve the framebuffer
Signature · 1 line
2.34.1