Commit c69380f85d9de706bada30fd08f6e95e475d12f1

Authored by Simon Glass
1 parent 84d7f9168b

fdt: Correct cast for sandbox in fdtdec_setup_memory_size()

This gives a warning with some native compilers:

lib/fdtdec.c:1203:8: warning: format ‘%llx’ expects argument of type
   ‘long long unsigned int’, but argument 3 has type
   ‘long unsigned int’ [-Wformat=]

Fix it with a cast.

Signed-off-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -1169,7 +1169,8 @@
1169 1169 }
1170 1170  
1171 1171 gd->ram_size = (phys_size_t)(res.end - res.start + 1);
1172   - debug("%s: Initial DRAM size %llx\n", __func__, (u64)gd->ram_size);
  1172 + debug("%s: Initial DRAM size %llx\n", __func__,
  1173 + (unsigned long long)gd->ram_size);
1173 1174  
1174 1175 return 0;
1175 1176 }