semihosting: print the semihosting operation id

Change-Id: If5c3568bd1c99a48ac492137f48da0d9764efe14
Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
Reviewed-on: http://openocd.zylin.com/5923
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Jonathan McDowell <noodles-openocd@earth.li>
Reviewed-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
Adrian Negreanu 2020-11-05 11:56:16 +02:00 committed by Antonio Borneo
parent 9cce6b3c76
commit 850e85fa6f
2 changed files with 2 additions and 2 deletions

View File

@ -315,7 +315,7 @@ int arm_semihosting(struct target *target, int *retval)
if (0 <= semihosting->op && semihosting->op <= 0x31) {
*retval = semihosting_common(target);
if (*retval != ERROR_OK) {
LOG_ERROR("Failed semihosting operation");
LOG_ERROR("Failed semihosting operation (0x%02X)", semihosting->op);
return 0;
}
} else {

View File

@ -140,7 +140,7 @@ semihosting_result_t riscv_semihosting(struct target *target, int *retval)
if (0 <= semihosting->op && semihosting->op <= 0x31) {
*retval = semihosting_common(target);
if (*retval != ERROR_OK) {
LOG_ERROR("Failed semihosting operation");
LOG_ERROR("Failed semihosting operation (0x%02X)", semihosting->op);
return SEMI_ERROR;
}
} else {