Fix message printing for SPI RES on spew level
Use a blacklist instead of a whitelist for 4-byte SPI RDID.
Tell users where to report bugs.
Corresponding to flashrom svn r1051.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Sean Nelson <audiohacked@gmail.com>
diff --git a/spi.c b/spi.c
index 30e0d33..2074d21 100644
--- a/spi.c
+++ b/spi.c
@@ -132,7 +132,8 @@
{
if (!spi_programmer[spi_controller].command) {
msg_perr("%s called, but SPI is unsupported on this "
- "hardware. Please report a bug.\n", __func__);
+ "hardware. Please report a bug at "
+ "flashrom@flashrom.org\n", __func__);
return 1;
}
@@ -144,7 +145,8 @@
{
if (!spi_programmer[spi_controller].multicommand) {
msg_perr("%s called, but SPI is unsupported on this "
- "hardware. Please report a bug.\n", __func__);
+ "hardware. Please report a bug at "
+ "flashrom@flashrom.org\n", __func__);
return 1;
}
@@ -183,8 +185,9 @@
int spi_chip_read(struct flashchip *flash, uint8_t *buf, int start, int len)
{
if (!spi_programmer[spi_controller].read) {
- msg_perr("%s called, but SPI read is unsupported on this"
- " hardware. Please report a bug.\n", __func__);
+ msg_perr("%s called, but SPI read is unsupported on this "
+ "hardware. Please report a bug at "
+ "flashrom@flashrom.org\n", __func__);
return 1;
}
@@ -198,8 +201,9 @@
int spi_chip_write_256(struct flashchip *flash, uint8_t *buf)
{
if (!spi_programmer[spi_controller].write_256) {
- msg_perr("%s called, but SPI page write is unsupported "
- " on this hardware. Please report a bug.\n", __func__);
+ msg_perr("%s called, but SPI page write is unsupported on this "
+ "hardware. Please report a bug at "
+ "flashrom@flashrom.org\n", __func__);
return 1;
}