1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-28 23:43:42 +02:00

Do not display skipped probe messsages in verbose mode

They are still visible in spew mode (-VV).

Corresponding to flashrom svn r1341.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
Carl-Daniel Hailfinger 2011-06-17 22:38:53 +00:00
parent 8ebc046bf3
commit 6573b74da2

View File

@ -1124,24 +1124,25 @@ int probe_flash(int startchip, struct flashchip *fill_flash, int force)
for (flash = flashchips + startchip; flash && flash->name; flash++) { for (flash = flashchips + startchip; flash && flash->name; flash++) {
if (chip_to_probe && strcmp(flash->name, chip_to_probe) != 0) if (chip_to_probe && strcmp(flash->name, chip_to_probe) != 0)
continue; continue;
msg_gdbg("Probing for %s %s, %d kB: ",
flash->vendor, flash->name, flash->total_size);
if (!flash->probe && !force) {
msg_gdbg("failed! flashrom has no probe function for "
"this flash chip.\n");
continue;
}
buses_common = buses_supported & flash->bustype; buses_common = buses_supported & flash->bustype;
if (!buses_common) { if (!buses_common) {
msg_gspew("Probing for %s %s, %d kB: skipped. ",
flash->vendor, flash->name, flash->total_size);
tmp = flashbuses_to_text(buses_supported); tmp = flashbuses_to_text(buses_supported);
msg_gdbg("skipped."); msg_gspew("Host bus type %s ", tmp);
msg_gspew(" Host bus type %s ", tmp);
free(tmp); free(tmp);
tmp = flashbuses_to_text(flash->bustype); tmp = flashbuses_to_text(flash->bustype);
msg_gspew("and chip bus type %s are incompatible.", msg_gspew("and chip bus type %s are incompatible.",
tmp); tmp);
free(tmp); free(tmp);
msg_gdbg("\n"); msg_gspew("\n");
continue;
}
msg_gdbg("Probing for %s %s, %d kB: ",
flash->vendor, flash->name, flash->total_size);
if (!flash->probe && !force) {
msg_gdbg("failed! flashrom has no probe function for "
"this flash chip.\n");
continue; continue;
} }