1From b9da5f937bd5ea4931ea17459bf79b2905d9594d Mon Sep 17 00:00:00 2001
2From: Simon Glass <sjg@chromium.org>
3Date: Sat, 15 Apr 2017 15:39:08 -0600
4Subject: [RFC 1/2] pci: Correct cast for sandbox
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9This gives a warning with some native compilers:
10
11cmd/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=]
14
15Fix it with a cast.
16
17Signed-off-by: Simon Glass <sjg@chromium.org>
18Series-notes:
19some notes
20about some things
21from the first commit
22END
23
24Commit-notes:
25Some notes about
26the first commit
27END
28---
29 cmd/pci.c | 3 ++-
30 1 file changed, 2 insertions(+), 1 deletion(-)
31
32diff --git a/cmd/pci.c b/cmd/pci.c
33index 41b4fff..fe27b4f 100644
34--- a/cmd/pci.c
35+++ b/cmd/pci.c
36@@ -150,7 +150,8 @@ int pci_bar_show(struct udevice *dev)
37 		if ((!is_64 && size_low) || (is_64 && size)) {
38 			size = ~size + 1;
39 			printf(" %d   %#016llx  %#016llx  %d     %s   %s\n",
40-			       bar_id, base, size, is_64 ? 64 : 32,
41+			       bar_id, (unsigned long long)base,
42+			       (unsigned long long)size, is_64 ? 64 : 32,
43 			       is_io ? "I/O" : "MEM",
44 			       prefetchable ? "Prefetchable" : "");
45 		}
46--
472.7.4
48
49