summaryrefslogtreecommitdiff
path: root/cli_classic.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-09-11 22:08:58 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-09-11 22:08:58 +0000
commitfe8fb1f95f37533260234b02e988d787e6043efb (patch)
tree5e6101bac2850ee22a933a9b08404de9c3fb76f7 /cli_classic.c
parentcd2c5a7aa6b183b0f87b6eb2b649e3f6ee49d6a4 (diff)
downloadflashrom-fe8fb1f95f37533260234b02e988d787e6043efb.tar.gz
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> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1436 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_classic.c')
-rw-r--r--cli_classic.c7
1 files changed, 7 insertions, 0 deletions
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];