Author: stefanct Date: Mon Sep 12 00:08:58 2011 New Revision: 1436 URL: http://flashrom.org/trac/flashrom/changeset/1436
Log: Print out the flash chip found after the probing loop in verbose mode
This allows easier identification of the flash chip used in verbose logs. There is no (additional) output if * -c is used to specify a flash chip, or * multiple chips are detected, or * no chips are detected.
Signed-off-by: Stefan Tauner stefan.tauner@student.tuwien.ac.at Acked-by: Uwe Hermann uwe@hermann-uwe.de
Modified: trunk/cli_classic.c
Modified: trunk/cli_classic.c ============================================================================== --- trunk/cli_classic.c Fri Sep 9 14:46:32 2011 (r1435) +++ trunk/cli_classic.c Mon Sep 12 00:08:58 2011 (r1436) @@ -483,6 +483,13 @@ } ret = 1; goto out_shutdown; + } else if (!chip_to_probe) { + /* repeat for convenience when looking at foreign logs */ + tempstr = flashbuses_to_text(flashes[0].bustype); + msg_gdbg("Found %s flash chip "%s" (%d kB, %s).\n", + flashes[0].vendor, flashes[0].name, + flashes[0].total_size, tempstr); + free(tempstr); }
fill_flash = &flashes[0];