This is an automated email from Gerrit. Dominik Peklo ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4573
-- gerrit commit 15248564d277fa0ab39756d506080620cdc1ab9d Author: Dominik Peklo <[email protected]> Date: Sun Jun 24 12:35:53 2018 +1000 flash/nor/tcl: Distinguish sectors and blocks in flash protect status message Use the right word in flash protect command status message based on whether the target bank defines num_prot_blocks. Change-Id: I5f40fb5627422536ce737f242fbf80feafe7a1fc Signed-off-by: Dominik Peklo <[email protected]> diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index 34681db..ba773c8 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -381,9 +381,11 @@ COMMAND_HANDLER(handle_flash_protect_command) retval = flash_driver_protect(p, set, first, last); if (retval == ERROR_OK) { - command_print(CMD_CTX, "%s protection for sectors %" PRIu32 + command_print(CMD_CTX, "%s protection for %s %" PRIu32 " through %" PRIu32 " on flash bank %d", - (set) ? "set" : "cleared", first, last, p->bank_number); + (set) ? "set" : "cleared", + (p->num_prot_blocks) ? "blocks" : "sectors", + first, last, p->bank_number); } return retval; -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
