From 1d947633b6ff7a3aaad954e15804fa42d2592023 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sun, 11 Sep 2011 22:08:58 +0000 Subject: 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. Corresponding to flashrom svn r1436. Signed-off-by: Stefan Tauner Acked-by: Uwe Hermann --- cli_classic.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cli_classic.c') diff --git a/cli_classic.c b/cli_classic.c index 55c069d..2b8309a 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -483,6 +483,13 @@ int main(int argc, char *argv[]) } 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]; -- cgit v1.1