All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 02/20] pci: Correct cast for sandbox
Date: Sat, 27 May 2017 07:38:12 -0600	[thread overview]
Message-ID: <20170527133831.25882-3-sjg@chromium.org> (raw)
In-Reply-To: <20170527133831.25882-1-sjg@chromium.org>

This gives a warning with some native compilers:

cmd/pci.c:152:11: warning: format ‘%llx’ expects argument of type
   ‘long long unsigned int’, but argument 3 has type
   ‘u64 {aka long unsigned int}’ [-Wformat=]

Fix it with a cast.

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

Changes in v3: None
Changes in v2: None

 cmd/pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/pci.c b/cmd/pci.c
index 41b4fffcf9..fe27b4f761 100644
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -150,7 +150,8 @@ int pci_bar_show(struct udevice *dev)
 		if ((!is_64 && size_low) || (is_64 && size)) {
 			size = ~size + 1;
 			printf(" %d   %#016llx  %#016llx  %d     %s   %s\n",
-			       bar_id, base, size, is_64 ? 64 : 32,
+			       bar_id, (unsigned long long)base,
+			       (unsigned long long)size, is_64 ? 64 : 32,
 			       is_io ? "I/O" : "MEM",
 			       prefetchable ? "Prefetchable" : "");
 		}
-- 
2.13.0.219.gdb65acc882-goog

  parent reply	other threads:[~2017-05-27 13:38 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-27 13:38 [U-Boot] [PATCH v3 00/20] fdt: Move to the new upstream pylibfdt library Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 01/20] fdt: Add Python bindings Simon Glass
2017-05-27 13:38 ` Simon Glass [this message]
2017-05-27 13:38 ` [U-Boot] [PATCH v3 03/20] fdt: Correct cast for sandbox in fdtdec_setup_memory_size() Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 04/20] fdt: Use SPDX format for licenses in the libfdt headers Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 05/20] fdt: Move header files into lib/libfdt Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 06/20] fdt: Allow swig options to be provided by Makefile Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 07/20] fdt: Add all source files to the libfdt build Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 08/20] fdt: Rename existing python libfdt module Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 09/20] fdt: Build the new " Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 10/20] fdt: Update fdt_test to use 'dt' instead of 'fdt' Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 11/20] fdt: dtoc: Add a full set of property tests Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 12/20] fdt: Support use of the new python libfdt library Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 13/20] fdt: Makefile: Build python libfdt library if needed Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 14/20] fdt: Stop building the old python libfdt module Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 15/20] fdt: Drop use of the legacy libfdt python module Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 16/20] fdt: Drop fdt_fallback library Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 17/20] binman: Drop a special case related to fdt_fallback Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 18/20] fdt: Merge fdt_normal with its base class Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 19/20] binman: Rename fdt variable to dtb Simon Glass
2017-05-27 13:38 ` [U-Boot] [PATCH v3 20/20] fdt: Drop fdt_select.py Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170527133831.25882-3-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.