bytes_to_read -= bytes_read;
}
- LOG_DEBUG("reg #%i: 0x%8.8x\n", reg, *value);
+ LOG_DEBUG("reg #%i: 0x%8.8x", reg, *value);
return ERROR_OK;
}
data[4] = (value & 0xff000000) >> 24;
bytes_written = write(oocd_trace->tty_fd, data, 5);
- LOG_DEBUG("reg #%i: 0x%8.8x\n", reg, value);
+ LOG_DEBUG("reg #%i: 0x%8.8x", reg, value);
return ERROR_OK;
}
* read up any leftover characters to ensure communication is in sync */
while ((bytes_read = read(oocd_trace->tty_fd, trash, sizeof(trash))) > 0)
{
- LOG_DEBUG("%zi bytes read\n", bytes_read);
+ LOG_DEBUG("%zi bytes read", bytes_read);
};
return ERROR_OK;
static const struct command_registration oocd_trace_all_command_handlers[] = {
{
.name = "config",
- .handler = &handle_oocd_trace_config_command,
+ .handler = handle_oocd_trace_config_command,
.mode = COMMAND_CONFIG,
- .usage = "<target>",
+ .usage = "target",
},
{
.name = "status",
- .handler = &handle_oocd_trace_status_command,
+ .handler = handle_oocd_trace_status_command,
.mode = COMMAND_EXEC,
.help = "display OpenOCD + trace status",
},