1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 14:11:15 +02:00

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 <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Stefan Tauner
2012-08-02 23:56:49 +00:00
parent 1ba08f6d41
commit 87fbb77866
2 changed files with 15 additions and 11 deletions

View File

@ -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;
}