GCC4.6: Squash warning in bus_vcxk.c
authorMarek Vasut <marek.vasut@gmail.com>
Mon, 24 Oct 2011 23:40:02 +0000 (23:40 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 27 Oct 2011 21:54:07 +0000 (23:54 +0200)
bus_vcxk.c:167:2: warning: format '%d' expects type 'int', but argument 2 has
type 'u_long'
bus_vcxk.c:167:2: warning: format '%d' expects type 'int', but argument 3 has
type 'u_long'

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/video/bus_vcxk.c

index 67a59a7..7aecb92 100644 (file)
@@ -164,7 +164,7 @@ int vcxk_init(unsigned long width, unsigned long height)
 #else
        #error CONFIG_SYS_VCXK_DEFAULT_LINEALIGN is invalid
 #endif
-       debug("linesize ((%d + 15) / 8 & ~0x1) = %d\n",
+       debug("linesize ((%ld + 15) / 8 & ~0x1) = %ld\n",
                display_width, display_bwidth);
 
 #ifdef CONFIG_SYS_VCXK_AUTODETECT