summaryrefslogtreecommitdiff
path: root/spi25.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-08-02 23:56:49 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-08-02 23:56:49 +0000
commitce9938ace71bd5b4596b1a8d4026d37c81050a7f (patch)
tree2542f35c5f8d527ed3b0dbef126c74c345eaacdd /spi25.c
parent7f72a8e5787df8e4b14b127d0504131953314fb5 (diff)
downloadflashrom-ce9938ace71bd5b4596b1a8d4026d37c81050a7f.tar.gz
Refine messages of SPI block protection disables.
Make them real progress indicators with a final "done" message on success. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1561 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'spi25.c')
-rw-r--r--spi25.c5
1 files changed, 3 insertions, 2 deletions
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;
}