[flashrom] [PATCH] print out flash chip found after probing loop in verbose mode

Stefan Tauner stefan.tauner at student.tuwien.ac.at
Thu Sep 8 23:44:23 CEST 2011


Signed-off-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
---
uwe wanted this rebased version for review and testing...

 cli_classic.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/cli_classic.c b/cli_classic.c
index 55c069d..ba4998c 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -483,6 +483,14 @@ 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("%s chip \"%s %s\" (%d kB, %s).\n",
+			 force ? "Assuming" : "Found",
+			 flashes[0].vendor, flashes[0].name,
+			 flashes[0].total_size, tempstr);
+		free(tempstr);
 	}
 
 	fill_flash = &flashes[0];
-- 
1.7.1





More information about the flashrom mailing list