[PATCH v2 3/9] mtd: print out the cell information for nand chip
Brian Norris
computersforpeace at gmail.com
Sat Aug 24 01:58:21 EDT 2013
On Mon, Aug 19, 2013 at 10:31:12AM +0800, Huang Shijie wrote:
> Print out the cell information for nand chip.
>
> Signed-off-by: Huang Shijie <b32955 at freescale.com>
> ---
> drivers/mtd/nand/nand_base.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
> index 69c4b25..8b487d5 100644
> --- a/drivers/mtd/nand/nand_base.c
> +++ b/drivers/mtd/nand/nand_base.c
> @@ -3454,10 +3454,11 @@ ident_done:
> chip->cmdfunc = nand_command_lp;
>
> pr_info("NAND device: Manufacturer ID: 0x%02x, Chip ID: 0x%02x (%s %s),"
> - " %dMiB, page size: %d, OOB size: %d\n",
> + " %dMiB, %s, page size: %d, OOB size: %d\n",
> *maf_id, *dev_id, nand_manuf_ids[maf_idx].name,
> chip->onfi_version ? chip->onfi_params.model : type->name,
> - (int)(chip->chipsize >> 20), mtd->writesize, mtd->oobsize);
> + (int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC",
> + mtd->writesize, mtd->oobsize);
This message is getting mighty long (approx. 120 characters when
printed). Are you sure we need all this? Maybe split into two separate
pr_info's sometime. But I'm OK with merging this for now.
>
> return type;
> }
Brian
More information about the linux-mtd
mailing list