From: Marek Vasut Date: Tue, 25 Oct 2011 11:40:00 +0200 Subject: [U-Boot] [PATCH 14/18] GCC4.6: Squash warnings in lattice.c In-Reply-To: <1319535604-20831-1-git-send-email-marek.vasut@gmail.com> References: <1319535604-20831-1-git-send-email-marek.vasut@gmail.com> Message-ID: <1319535604-20831-15-git-send-email-marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de lattice.c:319:4: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'const char *' lattice.c:319:4: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'long unsigned int' Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Simon Glass Cc: Mike Frysinger --- drivers/fpga/lattice.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/fpga/lattice.c b/drivers/fpga/lattice.c index 50d9e54..d8b642a 100644 --- a/drivers/fpga/lattice.c +++ b/drivers/fpga/lattice.c @@ -317,7 +317,7 @@ int lattice_load(Lattice_desc *desc, const void *buf, size_t bsize) read_bytes = 0; bufsize = bsize; debug("%s: Launching the Lattice ISPVME Loader:" - " addr 0x%x size 0x%x...\n", + " addr %p size 0x%lx...\n", __func__, fpga_image, bufsize); ret_val = ispVM(); if (ret_val) -- 1.7.6.3