From: Marek Vasut Date: Fri, 21 Oct 2011 14:17:08 +0000 (+0000) Subject: GCC4.6: Squash warnings in diu.c X-Git-Tag: v2011.12-rc1~386 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f09b44cae73d41072d56f04050c6152529a4fb5;p=u-boot GCC4.6: Squash warnings in diu.c diu.c: In function 'diu_set_pixel_clock': diu.c:77: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'u32' Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Simon Glass Cc: Mike Frysinger --- diff --git a/board/freescale/p1022ds/diu.c b/board/freescale/p1022ds/diu.c index cef81ce030..d5428ea16d 100644 --- a/board/freescale/p1022ds/diu.c +++ b/board/freescale/p1022ds/diu.c @@ -74,7 +74,7 @@ void diu_set_pixel_clock(unsigned int pixclock) temp = 1000000000 / pixclock; temp *= 1000; pixval = speed_ccb / temp; - debug("DIU pixval = %lu\n", pixval); + debug("DIU pixval = %u\n", pixval); /* Modify PXCLK in GUTS CLKDVDR */ temp = in_be32(&gur->clkdvdr) & 0x2000FFFF;