helper/command: change prototype of command_print/command_print_sameline
[fw/openocd] / src / flash / nor / psoc5lp.c
index 66e2b071ef94e6cd52c1e94f1f57b2d36b1a738c..7f801f294af5c01b7bc0e0441f44dc7df4fa9d75 100644 (file)
@@ -1501,9 +1501,9 @@ COMMAND_HANDLER(psoc5lp_handle_mass_erase_command)
 
        retval = psoc5lp_spc_erase_all(bank->target);
        if (retval == ERROR_OK)
-               command_print(CMD_CTX, "PSoC 5LP erase succeeded");
+               command_print(CMD, "PSoC 5LP erase succeeded");
        else
-               command_print(CMD_CTX, "PSoC 5LP erase failed");
+               command_print(CMD, "PSoC 5LP erase failed");
 
        return retval;
 }