]> git.sur5r.net Git - u-boot/commitdiff
GCC4.6: Squash warnings in mpc8610hpcd.c
authorMarek Vasut <marek.vasut@gmail.com>
Fri, 21 Oct 2011 14:17:09 +0000 (14:17 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 27 Oct 2011 21:54:01 +0000 (23:54 +0200)
mpc8610hpcd.c: In function 'misc_init_r':
mpc8610hpcd.c:79: warning: format '%02lx' expects type 'long unsigned int', but
argument 2 has type 'int'
mpc8610hpcd.c:86: warning: format '%02lx' expects type 'long unsigned int', but
argument 2 has type '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>
board/freescale/mpc8610hpcd/mpc8610hpcd.c

index 1854e27dac9ea2b340cab20c5f8b0758902689e1..5b3b56042613585da16e4efe3c234dc5db7f7496 100644 (file)
@@ -76,14 +76,14 @@ int misc_init_r(void)
        /* Verify if enabled */
        tmp_val = 0;
        i2c_read(0x38, 0x08, 1, &tmp_val, sizeof(tmp_val));
-       debug("DVI Encoder Read: 0x%02lx\n",tmp_val);
+       debug("DVI Encoder Read: 0x%02x\n", tmp_val);
 
        tmp_val = 0x10;
        i2c_write(0x38, 0x0A, 1, &tmp_val, sizeof(tmp_val));
        /* Verify if enabled */
        tmp_val = 0;
        i2c_read(0x38, 0x0A, 1, &tmp_val, sizeof(tmp_val));
-       debug("DVI Encoder Read: 0x%02lx\n",tmp_val);
+       debug("DVI Encoder Read: 0x%02x\n", tmp_val);
 
        return 0;
 }