]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
GCC4.6: Squash warnings in ddr[123]_dimm_params.c
authorMarek Vasut <marek.vasut@gmail.com>
Fri, 21 Oct 2011 14:17:19 +0000 (14:17 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 27 Oct 2011 21:54:00 +0000 (23:54 +0200)
ddr1_dimm_params.c: In function 'compute_ranksize':
ddr1_dimm_params.c:44: warning: format '%08x' expects type 'unsigned int', but
argument 2 has type 'long long unsigned int'

ddr2_dimm_params.c: In function 'compute_ranksize':
ddr2_dimm_params.c:43: warning: format '%08x' expects type 'unsigned int', but
argument 2 has type 'long long unsigned int'

ddr3_dimm_params.c: In function 'compute_ranksize':
ddr3_dimm_params.c:74: warning: format '%16lx' expects type 'long unsigned int',
but argument 2 has type 'long 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>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc8xxx/ddr/ddr1_dimm_params.c
arch/powerpc/cpu/mpc8xxx/ddr/ddr2_dimm_params.c
arch/powerpc/cpu/mpc8xxx/ddr/ddr3_dimm_params.c

index 91847644180dfa861c3d08b1a351e01d852d96f1..376be2fb37e080acf979d4f6e9356cff272e978b 100644 (file)
@@ -41,7 +41,7 @@ compute_ranksize(unsigned int mem_type, unsigned char row_dens)
        /* Bottom 2 bits up to the top. */
        bsize = ((row_dens >> 2) | ((row_dens & 3) << 6));
        bsize <<= 24ULL;
-       debug("DDR: DDR I rank density = 0x%08x\n", bsize);
+       debug("DDR: DDR I rank density = 0x%16llx\n", bsize);
 
        return bsize;
 }
index b565e338ad3923f2904694cc5d5d4be4fd9ad7c6..f637f3d04570dae3e025bc0c0a56f0dcda14000b 100644 (file)
@@ -40,7 +40,7 @@ compute_ranksize(unsigned int mem_type, unsigned char row_dens)
        /* Bottom 5 bits up to the top. */
        bsize = ((row_dens >> 5) | ((row_dens & 31) << 3));
        bsize <<= 27ULL;
-       debug("DDR: DDR II rank density = 0x%08x\n", bsize);
+       debug("DDR: DDR II rank density = 0x%16llx\n", bsize);
 
        return bsize;
 }
index 838cebed5722c127506f0c292053433d48798330..ffb503a777aca52f7fe5177adf31263276c2f676 100644 (file)
@@ -71,7 +71,7 @@ compute_ranksize(const ddr3_spd_eeprom_t *spd)
        bsize = 1ULL << (nbit_sdram_cap_bsize - 3
                    + nbit_primary_bus_width - nbit_sdram_width);
 
-       debug("DDR: DDR III rank density = 0x%16lx\n", bsize);
+       debug("DDR: DDR III rank density = 0x%16llx\n", bsize);
 
        return bsize;
 }