Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 0a6d6ba ("mtd: nand: Add core infrastructure to support SPI NANDs") Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Frieder Schrempf <[email protected]> Acked-by: Michael Trimarchi <[email protected]> Signed-off-by: Dario Binacchi <[email protected]>
- Loading branch information