[PATCH] mtd : print out the page size and oob size after parsing out the nand
Artem Bityutskiy
dedekind1 at gmail.com
Sun Apr 22 01:15:24 EDT 2012
On Mon, 2012-04-09 at 11:41 +0800, Huang Shijie wrote:
> pr_info("NAND device: Manufacturer ID:"
> - " 0x%02x, Chip ID: 0x%02x (%s %s)\n", *maf_id, *dev_id,
> - nand_manuf_ids[maf_idx].name,
> - chip->onfi_version ? chip->onfi_params.model : type->name);
> + " 0x%02x, Chip ID: 0x%02x (%s %s), pagesize: %d, oobsize: %d\n",
> + *maf_id, *dev_id, nand_manuf_ids[maf_idx].name,
> + chip->onfi_version ? chip->onfi_params.model : type->name,
> + mtd->writesize, mtd->oobsize);
I've amended this to print "page size" and "OOB size" instead, because
this is a bit more user-friendly, and pushed to l2-mtd.git, thanks.
--
Best Regards,
Artem Bityutskiy
More information about the linux-mtd
mailing list