1 From b9da5f937bd5ea4931ea17459bf79b2905d9594d 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 1/2] pci: Correct cast for sandbox
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 This gives a warning with some native compilers:
11 cmd/pci.c:152:11: warning: format ‘%llx’ expects argument of type
12 ‘long long unsigned int’, but argument 3 has type
13 ‘u64 {aka long unsigned int}’ [-Wformat=]
17 Signed-off-by: Simon Glass <sjg@chromium.org>
19 - Changes only for this commit
33 1 file changed, 2 insertions(+), 1 deletion(-)
35 diff --git a/cmd/pci.c b/cmd/pci.c
36 index 41b4fff..fe27b4f 100644
39 @@ -150,7 +150,8 @@ int pci_bar_show(struct udevice *dev)
40 if ((!is_64 && size_low) || (is_64 && size)) {
42 printf(" %d %#016llx %#016llx %d %s %s\n",
43 - bar_id, base, size, is_64 ? 64 : 32,
44 + bar_id, (unsigned long long)base,
45 + (unsigned long long)size, is_64 ? 64 : 32,
46 is_io ? "I/O" : "MEM",
47 prefetchable ? "Prefetchable" : "");