1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

mtd: spi-nor: Print jedec id of unrecognized flashes

Hell to debug otherwise.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
This commit is contained in:
Ondrej Jirman
2023-07-04 07:55:54 +02:00
parent 3442b275ac
commit 5f21a63165

View File

@@ -385,7 +385,7 @@ static const struct flash_info *spi_nor_read_id(struct spi_nor *nor)
return info;
}
}
dev_dbg(nor->dev, "unrecognized JEDEC id bytes: %02x, %02x, %02x\n",
printf("unrecognized JEDEC id bytes: %02x, %02x, %02x\n",
id[0], id[1], id[2]);
return ERR_PTR(-EMEDIUMTYPE);
}