]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fdt: Correct warning in fdt_setup_simplefb_node()
authorSimon Glass <sjg@chromium.org>
Mon, 20 Apr 2015 18:37:16 +0000 (12:37 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:13 +0000 (22:37 +0200)
Adjust the printf() string to avoid a warning on sandbox.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/fdt_support.c

index 8011083807639fa328d93932434759e6ad90f040..612ee914c6b726ac4ce86d069aebb2fb86b43948 100644 (file)
@@ -1549,7 +1549,7 @@ int fdt_setup_simplefb_node(void *fdt, int node, u64 base_address, u32 width,
        if (ret < 0)
                return ret;
 
-       snprintf(name, sizeof(name), "framebuffer@%llx", base_address);
+       snprintf(name, sizeof(name), "framebuffer@%" PRIx64, base_address);
        ret = fdt_set_name(fdt, node, name);
        if (ret < 0)
                return ret;