]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: simplefb: Fix build warn with CONFIG_FDT_64BIT=n
authorEva Kurchatova <lekkit@at.encryp.ch>
Wed, 9 Oct 2024 08:48:28 +0000 (16:48 +0800)
committerAnatolij Gustschin <agust@denx.de>
Tue, 22 Oct 2024 18:56:28 +0000 (20:56 +0200)
Fix compile warning with !CONFIG_FDT_64BIT by
casting the variable in the debug print.

Signed-off-by: Eva Kurchatova <lekkit@at.encryp.ch>
Reported-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/video/simplefb.c

index cb518b149cb58b53a885882d475e20a2713878f3..239b006744d8deed758da95f9c41c0d59dbb48d1 100644 (file)
@@ -27,7 +27,8 @@ 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