[flashrom] [PATCH 2/3] add a success indicator to the "Reading old flash chip contents..." message

Stefan Tauner stefan.tauner at student.tuwien.ac.at
Sat Jun 25 03:36:07 CEST 2011


Signed-off-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
---
 flashrom.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/flashrom.c b/flashrom.c
index 6dc6fb8..c664a50 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -1910,11 +1910,13 @@ int doit(struct flashchip *flash, int force, const char *filename, int read_it,
 	 * preserved, but in that case we might perform unneeded erase which
 	 * takes time as well.
 	 */
-	msg_cdbg("Reading old flash chip contents...\n");
+	msg_cdbg("Reading old flash chip contents... ");
 	if (flash->read(flash, oldcontents, 0, size)) {
 		ret = 1;
+		msg_cdbg("FAILED.\n");
 		goto out;
 	}
+	msg_cdbg("done.\n");
 
 	// This should be moved into each flash part's code to do it 
 	// cleanly. This does the job.
-- 
1.7.1





More information about the flashrom mailing list