Explorar o código

fdt: Correct warning in fdt_setup_simplefb_node()

Adjust the printf() string to avoid a warning on sandbox.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass %!s(int64=10) %!d(string=hai) anos
pai
achega
c3ec646dde
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/fdt_support.c

+ 1 - 1
common/fdt_support.c

@@ -1533,7 +1533,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;