mtd: nand: print erase size on init

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Dec 15 19:59:08 PST 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3755a99157d3b038f9dfe9bb203c520cb9728b93
Commit:     3755a99157d3b038f9dfe9bb203c520cb9728b93
Parent:     806b6ef5676a1c6ea78592174aae15f59bb0a923
Author:     Rafał Miłecki <zajec5 at gmail.com>
AuthorDate: Tue Oct 21 00:01:04 2014 +0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Nov 25 19:01:36 2014 -0800

    mtd: nand: print erase size on init
    
    It may be useful info, e.g. if someone wants to use ubinize.
    
    Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/nand_base.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 755995e..4cbd145 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3765,9 +3765,9 @@ ident_done:
 		pr_info("%s %s\n", nand_manuf_ids[maf_idx].name,
 				type->name);
 
-	pr_info("%dMiB, %s, page size: %d, OOB size: %d\n",
+	pr_info("%d MiB, %s, erase size: %d KiB, page size: %d, OOB size: %d\n",
 		(int)(chip->chipsize >> 20), nand_is_slc(chip) ? "SLC" : "MLC",
-		mtd->writesize, mtd->oobsize);
+		mtd->erasesize >> 10, mtd->writesize, mtd->oobsize);
 	return type;
 }
 



More information about the linux-mtd-cvs mailing list