Skip to content

Commit

Permalink
Merge pull request #882 from MarekVCodasip/target-logging-usage
Browse files Browse the repository at this point in the history
target/riscv: Add target name logging to most log prints.
  • Loading branch information
timsifive authored Jul 24, 2023
2 parents 21fd3e1 + 9036f40 commit aeb37cb
Show file tree
Hide file tree
Showing 4 changed files with 269 additions and 270 deletions.
4 changes: 2 additions & 2 deletions src/target/riscv/batch.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ bool riscv_batch_full(struct riscv_batch *batch)
int riscv_batch_run(struct riscv_batch *batch)
{
if (batch->used_scans == 0) {
LOG_DEBUG("Ignoring empty batch.");
LOG_TARGET_DEBUG(batch->target, "Ignoring empty batch.");
return ERROR_OK;
}

Expand All @@ -107,7 +107,7 @@ int riscv_batch_run(struct riscv_batch *batch)
keep_alive();

if (jtag_execute_queue() != ERROR_OK) {
LOG_ERROR("Unable to execute JTAG queue");
LOG_TARGET_ERROR(batch->target, "Unable to execute JTAG queue");
return ERROR_FAIL;
}

Expand Down
Loading

0 comments on commit aeb37cb

Please sign in to comment.