jtag/drivers/ftdi: Use command_print instead of LOG_USER for get_signal
LOG_USER only outputs to user interfaces, but leaves no way to get the FTDI inputs over the RPC interface. Switch to command_print so this string goes to both logs and the RPC interface. Change-Id: I99024194b6687b88d354ef278aa25f372c862c22 Signed-off-by: Mark Featherston <mark@embeddedts.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8294 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins Reviewed-by: zapb <dev@zapb.de>
This commit is contained in:
parent
72b39088ee
commit
9623069e80
|
@ -852,7 +852,7 @@ COMMAND_HANDLER(ftdi_handle_get_signal_command)
|
|||
uint16_t sig_data = 0;
|
||||
sig = find_signal_by_name(CMD_ARGV[0]);
|
||||
if (!sig) {
|
||||
LOG_ERROR("interface configuration doesn't define signal '%s'", CMD_ARGV[0]);
|
||||
command_print(CMD, "interface configuration doesn't define signal '%s'", CMD_ARGV[0]);
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
|
@ -860,7 +860,7 @@ COMMAND_HANDLER(ftdi_handle_get_signal_command)
|
|||
if (ret != ERROR_OK)
|
||||
return ret;
|
||||
|
||||
LOG_USER("Signal %s = %#06x", sig->name, sig_data);
|
||||
command_print(CMD, "%#06x", sig_data);
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue