[ARM] 4233/1: nand/s3c2410.c: warning fix
authorArnaud Patard <arnaud.patard@rtp-net.org>
Fri, 23 Feb 2007 00:00:09 +0000 (01:00 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 25 Feb 2007 16:41:41 +0000 (16:41 +0000)
Noticed while building a s3c2410 kernel :
drivers/mtd/nand/s3c2410.c: In function 's3c2440_nand_calculate_ecc':
drivers/mtd/nand/s3c2410.c:476: warning: format '%06x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'

This patch fixes it.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mtd/nand/s3c2410.c

index 0ddfd6de75c52e75864c6cb6ab7d7550e45089dd..5fac4c421a20be16cad4397a08d3f0e48a84ce91 100644 (file)
@@ -473,7 +473,7 @@ static int s3c2440_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u
        ecc_code[1] = ecc >> 8;
        ecc_code[2] = ecc >> 16;
 
-       pr_debug("%s: returning ecc %06x\n", __func__, ecc);
+       pr_debug("%s: returning ecc %06lx\n", __func__, ecc);
 
        return 0;
 }