X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fmips32.c;h=ce16a7b5d63e5e3242799d0b0c2f469d71dd17f1;hb=a5108240f9e12633fea400f92d96cc75e03c86ca;hp=1a34f737e4ac5e690e57bde4f9771608ba7969d9;hpb=7023deb06a8cac77fe50d341c9e34b80d4fc68fd;p=openocd.git diff --git a/src/target/mips32.c b/src/target/mips32.c index 1a34f737e4..ce16a7b5d6 100644 --- a/src/target/mips32.c +++ b/src/target/mips32.c @@ -438,7 +438,7 @@ int mips32_run_algorithm(struct target *target, int num_mem_params, } if (target->state != TARGET_HALTED) { - LOG_WARNING("target not halted"); + LOG_TARGET_ERROR(target, "not halted (run target algo)"); return ERROR_TARGET_NOT_HALTED; } @@ -921,8 +921,8 @@ COMMAND_HANDLER(mips32_handle_cp0_command) return retval; if (target->state != TARGET_HALTED) { - command_print(CMD, "target must be stopped for \"%s\" command", CMD_NAME); - return ERROR_OK; + command_print(CMD, "Error: target must be stopped for \"%s\" command", CMD_NAME); + return ERROR_TARGET_NOT_HALTED; } /* two or more argument, access a single register/select (write if third argument is given) */