From eab129d9a6cd2bfae66878ec5579c1416adcf090 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Thu, 2 Aug 2012 23:56:49 +0000 Subject: Refine messages of SPI block protection disables Make them real progress indicators with a final "done" message on success. Corresponding to flashrom svn r1561. Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- spi25.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'spi25.c') diff --git a/spi25.c b/spi25.c index 3693783..900df9c 100644 --- a/spi25.c +++ b/spi25.c @@ -933,10 +933,10 @@ int spi_disable_blockprotect(struct flashctx *flash) if ((status & 0x3c) == 0) return 0; - msg_cdbg("Some block protection in effect, disabling\n"); + msg_cdbg("Some block protection in effect, disabling... "); result = spi_write_status_register(flash, status & ~0x3c); if (result) { - msg_cerr("spi_write_status_register failed\n"); + msg_cerr("spi_write_status_register failed.\n"); return result; } status = spi_read_status_register(flash); @@ -944,6 +944,7 @@ int spi_disable_blockprotect(struct flashctx *flash) msg_cerr("Block protection could not be disabled!\n"); return 1; } + msg_cdbg("done.\n"); return 0; } -- cgit v1.1