Don't always error if a debug program fails

This is often expected, and the calling code should decide whether to
emit an error or not.

Change-Id: Ic21f38b4c75f01e6b40034fdc60dde6ba7a55f4a
This commit is contained in:
Tim Newsome
2018-03-02 20:01:12 -08:00
parent 1d00d03dc0
commit 84c0fdd5d1
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ int riscv_program_exec(struct riscv_program *p, struct target *t)
return ERROR_FAIL;
if (riscv_execute_debug_buffer(t) != ERROR_OK) {
LOG_ERROR("Unable to execute program %p", p);
LOG_DEBUG("Unable to execute program %p", p);
return ERROR_FAIL;
}