]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
GCC4.6: Squash warnings in lattice.c
authorMarek Vasut <marek.vasut@gmail.com>
Mon, 24 Oct 2011 23:40:00 +0000 (23:40 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 27 Oct 2011 21:54:07 +0000 (23:54 +0200)
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 <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
drivers/fpga/lattice.c

index 50d9e542d7a4dc454dfff75df2662abf7ab0537e..d8b642a6bc7a4394216e8abab325edd72ec2fe1a 100644 (file)
@@ -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)