Skip to content

Commit

Permalink
target/riscv: Add target logging to most logging instances
Browse files Browse the repository at this point in the history
This patch adds target logging to logging instances where it makes sense.
This is especially useful when debugging multiple targets at once,
such as multicore systems.

Change-Id: Ia9861f3fa0e6e5908b683c2a8280659c3c264395
Signed-off-by: Marek Vrbka <marek.vrbka@codasip.com>
  • Loading branch information
MarekVCodasip committed Jul 24, 2023
1 parent 21fd3e1 commit 9036f40
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 9036f40

Please sign in to comment.