1 From 5ab48490f03051875ab13d288a4bf32b507d76fd Mon Sep 17 00:00:00 2001
2 From: Simon Glass <sjg@chromium.org>
3 Date: Sat, 15 Apr 2017 15:39:08 -0600
4 Subject: [RFC 2/2] fdt: Correct cast for sandbox in fdtdec_setup_mem_size_base()
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 This gives a warning with some native compilers:
11 lib/fdtdec.c:1203:8: warning: format ‘%llx’ expects argument of type
12 ‘long long unsigned int’, but argument 3 has type
13 ‘long unsigned int’ [-Wformat=]
17 Signed-off-by: Simon Glass <sjg@chromium.org>
20 Series-cc: Stefan Brüns <stefan.bruens@rwth-aachen.de>
21 Cover-letter-cc: Lord Mëlchett <clergy@palace.gov>
28 test: A test patch series
29 This is a test of how the cover
35 lib/efi_loader/efi_memory.c | 1 +
37 3 files changed, 4 insertions(+), 1 deletion(-)
39 diff --git a/fs/fat/fat.c b/fs/fat/fat.c
40 index a71bad1..ba169dc 100644
48 diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
49 index db2ae19..05f75d1 100644
50 --- a/lib/efi_loader/efi_memory.c
51 +++ b/lib/efi_loader/efi_memory.c
55 * EFI application memory management
57 diff --git a/lib/fdtdec.c b/lib/fdtdec.c
58 index c072e54..942244f 100644
61 @@ -1200,7 +1200,8 @@ int fdtdec_setup_mem_size_base(void)
64 gd->ram_size = (phys_size_t)(res.end - res.start + 1);
65 - debug("%s: Initial DRAM size %llx\n", __func__, (u64)gd->ram_size);
66 + debug("%s: Initial DRAM size %llx\n", __func__,
67 + (unsigned long long)gd->ram_size);