]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spinand: Fix display of unknown raw ID
authorPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 13 Feb 2023 17:30:04 +0000 (18:30 +0100)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Mon, 27 Feb 2023 15:30:09 +0000 (16:30 +0100)
commit4f64a310fc1610dec167be0a999ec3849f9e0e3c
tree4620f2ad8cadc36eaef1eb8737f9e30f0b5c1677
parentd346971559297900f0cd27665be8d9b877c156fe
mtd: spinand: Fix display of unknown raw ID

In case ID is not found in manufacturer table, the raw ID is
printed using %*phN format which is not supported by lib/vsprintf.c.
The information displayed doesn't reflect the raw ID return by the
unknown spi-nand.

Use %02x format instead, as done in spi-nor-core.c.

For example, before this patch:
  ERROR: spi-nand: spi_nand flash@0: unknown raw ID f74ec040
after
  ERROR: spi-nand: spi_nand flash@0: unknown raw ID 00 c2 26 03

Fixes: 0a6d6bae0386 ("mtd: nand: Add core infrastructure to support SPI NANDs")
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Acked-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
drivers/mtd/nand/spi/core.c