- add missing parentheses around macro parameters (thanks to Matthias Bauch for notic...
[fw/openocd] / src / flash / flash.c
index 736d3fca12484243e5831e5f0a85645448d293a3..0a6796468fb5a741cd96a43af0c284e70e28a8e2 100644 (file)
@@ -471,6 +471,10 @@ int handle_flash_protect_command(struct command_context_s *cmd_ctx, char *cmd, c
                                        command_print(cmd_ctx, "unknown error");
                        }
                }
+               else
+               {
+                       command_print(cmd_ctx, "%s protection for sectors %i through %i on flash bank %i", (set) ? "set" : "cleared", first, last, strtoul(args[0], 0, 0));
+               }
        }
        else
        {