]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
GCC4.6: Squash warnings in PPChameleonEVB/flash.c
authorMarek Vasut <marek.vasut@gmail.com>
Fri, 21 Oct 2011 14:17:29 +0000 (14:17 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 27 Oct 2011 21:54:02 +0000 (23:54 +0200)
flash.c: In function 'flash_init':
flash.c:54: warning: format '%08X' expects type 'unsigned int', but argument 4
has type 'struct flash_info_t *'

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
board/dave/PPChameleonEVB/flash.c

index 2e1a9abc0857b8ae42bf30d24814d654f4d2814e..3d5b20d22380ae34be033966408ff07f59980121 100644 (file)
@@ -51,7 +51,8 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        debug("[%s, %d] Entering ...\n", __FUNCTION__, __LINE__);
-       debug("[%s, %d] flash_info = 0x%08X ...\n", __FUNCTION__, __LINE__, flash_info);
+       debug("[%s, %d] flash_info = 0x%p ...\n", __func__, __LINE__,
+                                               flash_info);
 
        /* Init: no FLASHes known */
        for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {