mtd: spi-nor: Fix error message with unrecognized JEDEC

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 12 15:59:11 PST 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=9b9f1033da9166617c4a5cadfc12b23b465fb596
Commit:     9b9f1033da9166617c4a5cadfc12b23b465fb596
Parent:     a81c0f07b4a7559eecebf77bcc1956d9d777b006
Author:     Ricardo Ribalda <ricardo.ribalda at gmail.com>
AuthorDate: Mon Nov 30 20:41:17 2015 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Dec 1 10:39:49 2015 -0800

    mtd: spi-nor: Fix error message with unrecognized JEDEC
    
    The error message was:
    
    m25p80 spi32766.0: unrecognized JEDEC id bytes: 00,  0,  0
    
    The new error message:
    
    m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
    
    Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/spi-nor/spi-nor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index b7c038c..f8a9b77 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -890,7 +890,7 @@ static const struct flash_info *spi_nor_read_id(struct spi_nor *nor)
 				return &spi_nor_ids[tmp];
 		}
 	}
-	dev_err(nor->dev, "unrecognized JEDEC id bytes: %02x, %2x, %2x\n",
+	dev_err(nor->dev, "unrecognized JEDEC id bytes: %02x, %02x, %02x\n",
 		id[0], id[1], id[2]);
 	return ERR_PTR(-ENODEV);
 }



More information about the linux-mtd-cvs mailing list