[PATCH 03/11] nand: print size parameter as unsinged not as signed
Marc Kleine-Budde
mkl at pengutronix.de
Mon Nov 23 07:06:15 EST 2009
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
drivers/nand/nand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/nand/nand.c b/drivers/nand/nand.c
index bf00d8b..b72cbb1 100644
--- a/drivers/nand/nand.c
+++ b/drivers/nand/nand.c
@@ -171,7 +171,7 @@ int add_mtd_device(struct mtd_info *mtd)
mtd->param_size.flags = PARAM_FLAG_RO;
mtd->param_size.name = "size";
- mtd->param_size.value = asprintf("%d", mtd->size);
+ mtd->param_size.value = asprintf("%u", mtd->size);
dev_add_param(&mtd->class_dev, &mtd->param_size);
devfs_create(&mtd->cdev);
--
1.6.5.2
More information about the barebox
mailing list