diff options
author | Haikun Wang <Haikun.Wang@freescale.com> | 2015-06-26 19:56:40 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-20 07:21:47 -0600 |
commit | b1d9e46a0b89054e1a702e757612f87a907bf7a9 (patch) | |
tree | 8788d0f8158538c2b8528b0cb8c1d32640de2722 /lib | |
parent | 5c1cf89f8c342c8533f730409f7dd2b21806c3d3 (diff) | |
download | u-boot-imx-b1d9e46a0b89054e1a702e757612f87a907bf7a9.zip u-boot-imx-b1d9e46a0b89054e1a702e757612f87a907bf7a9.tar.gz u-boot-imx-b1d9e46a0b89054e1a702e757612f87a907bf7a9.tar.bz2 |
fdt: armv8: Fix build warnings on armv8
Fix below build warnings on armv8,
drivers/spi/fsl_dspi.c: In function ‘fsl_dspi_ofdata_to_platdata’:
drivers/spi/fsl_dspi.c:667:2:
warning: format ‘%x’ expects argument of type ‘unsigned int’,
but argument 2 has type ‘fdt_addr_t’ [-Wformat=]
debug("DSPI: regs=0x%x, max-frequency=%d, endianess=%s, num-cs=%d\n",
^
lib/fdtdec.c: In function ‘fdtdec_get_addr_size’:
lib/fdtdec.c:105:4:
warning: format ‘%lx’ expects argument of type ‘long unsigned int’,
but argument 3 has type ‘fdt_size_t’ [-Wformat=]
debug("addr=%08lx, size=%08lx\n",
^
Signed-off-by: Haikun Wang <haikun.wang@freescale.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fdtdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 9877849..9c6b361 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -102,8 +102,8 @@ fdt_addr_t fdtdec_get_addr_size(const void *blob, int node, size = (fdt_size_t *)((char *)cell + sizeof(fdt_addr_t)); *sizep = fdt_size_to_cpu(*size); - debug("addr=%08lx, size=%08x\n", - (ulong)addr, *sizep); + debug("addr=%08lx, size=%llx\n", + (ulong)addr, (u64)*sizep); } else { debug("%08lx\n", (ulong)addr); } |