mtd: spi-nor: Fix error message with unrecognized JEDEC
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Mon, 30 Nov 2015 19:41:17 +0000 (20:41 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 1 Dec 2015 18:39:49 +0000 (10:39 -0800)
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@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/spi-nor.c

index b7c038c75684bd399e908aae08137e84e4324adc..f8a9b77aac7680f2e221f6b9054f7c94a2802718 100644 (file)
@@ -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);
 }