diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-03-22 23:43:51 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-03-22 23:43:51 +0000 |
commit | 12575e5bfe4292067d805404f6c6524f64a3ab86 (patch) | |
tree | 710eb481f73dbdb11a9ec4d8adf02731d6534d2c /flashrom.c | |
parent | ed3eae68738c6655eab45265ab204b79504af701 (diff) | |
download | flashrom-12575e5bfe4292067d805404f6c6524f64a3ab86.tar.gz flashrom-12575e5bfe4292067d805404f6c6524f64a3ab86.tar.bz2 flashrom-12575e5bfe4292067d805404f6c6524f64a3ab86.zip |
Reduce message severity level for skipped chips
Old verbose log excerpt:
Probing for Atmel AT25DF021, 256 KB: skipped. Host bus type Parallel and
chip bus type SPI are incompatible.
New verbose log excerpt:
Probing for Atmel AT25DF021, 256 KB: skipped.
This makes logs more readable and manageable. If someone really
desperately wants all the bus debugging stuff, he/she can switch to SPEW
mode instead of VERBOSE mode.
Corresponding to flashrom svn r970.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/flashrom.c b/flashrom.c index 988e0102a..f5c0721f9 100644 --- a/flashrom.c +++ b/flashrom.c @@ -877,20 +877,24 @@ struct flashchip *probe_flash(struct flashchip *first_flash, int force) for (flash = first_flash; flash && flash->name; flash++) { if (chip_to_probe && strcmp(flash->name, chip_to_probe) != 0) continue; - printf_debug("Probing for %s %s, %d KB: ", + msg_gdbg("Probing for %s %s, %d KB: ", flash->vendor, flash->name, flash->total_size); if (!flash->probe && !force) { - printf_debug("failed! flashrom has no probe function for this flash chip.\n"); + msg_gdbg("failed! flashrom has no probe function for " + "this flash chip.\n"); continue; } buses_common = buses_supported & flash->bustype; if (!buses_common) { tmp = flashbuses_to_text(buses_supported); - printf_debug("skipped. Host bus type %s ", tmp); + msg_gdbg("skipped."); + msg_gspew(" Host bus type %s ", tmp); free(tmp); tmp = flashbuses_to_text(flash->bustype); - printf_debug("and chip bus type %s are incompatible.\n", tmp); + msg_gspew("and chip bus type %s are incompatible.", + tmp); free(tmp); + msg_gdbg("\n"); continue; } |