Skip to content

Commit 650da9d

Browse files
akpm00David Woodhouse
authored andcommitted
[MTD] [NAND] fsl_elbc_nand.c: fix printk warning
drivers/mtd/nand/fsl_elbc_nand.c:890: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t' Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 74216be commit 650da9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mtd/nand/fsl_elbc_nand.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ static int __devinit fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl,
887887
goto err;
888888
}
889889

890-
priv->mtd.name = kasprintf(GFP_KERNEL, "%x.flash", res.start);
890+
priv->mtd.name = kasprintf(GFP_KERNEL, "%x.flash", (unsigned)res.start);
891891
if (!priv->mtd.name) {
892892
ret = -ENOMEM;
893893
goto err;

0 commit comments

Comments
 (0)