aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcgsfv <cgsfv@users.noreply.github.com>2018-10-19 13:09:16 +0200
committercgsfv <cgsfv@users.noreply.github.com>2018-10-19 13:09:16 +0200
commitb36dbff869853700ced91a85656b743160b78a12 (patch)
tree635978699f2bca528e3f6b7f92fc6e50ebaa44db
parent60c37e1679615428577fe1b0b785327e1d48b4fa (diff)
downloadriscv-openocd-b36dbff869853700ced91a85656b743160b78a12.zip
riscv-openocd-b36dbff869853700ced91a85656b743160b78a12.tar.gz
riscv-openocd-b36dbff869853700ced91a85656b743160b78a12.tar.bz2
Changed logging level
-rw-r--r--src/target/riscv/batch.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/target/riscv/batch.c b/src/target/riscv/batch.c
index 9327cb3..6b3bede 100644
--- a/src/target/riscv/batch.c
+++ b/src/target/riscv/batch.c
@@ -51,7 +51,7 @@ int riscv_batch_run(struct riscv_batch *batch)
keep_alive();
- LOG_DEBUG("running a batch of %ld scans", (long)batch->used_scans);
+ LOG_DEBUG_IO("running a batch of %ld scans", (long)batch->used_scans);
riscv_batch_add_nop(batch);
for (size_t i = 0; i < batch->used_scans; ++i) {
@@ -60,7 +60,7 @@ int riscv_batch_run(struct riscv_batch *batch)
jtag_add_runtest(batch->idle_count, TAP_IDLE);
}
- LOG_DEBUG("executing queue");
+ LOG_DEBUG_IO("executing queue");
if (jtag_execute_queue() != ERROR_OK) {
LOG_ERROR("Unable to execute JTAG queue");
return ERROR_FAIL;
@@ -102,7 +102,7 @@ size_t riscv_batch_add_dmi_read(struct riscv_batch *batch, unsigned address)
riscv_batch_add_nop(batch);
batch->read_keys[batch->read_keys_used] = batch->used_scans - 1;
- LOG_DEBUG("read key %u for batch 0x%p is %u (0x%p)",
+ LOG_DEBUG_IO("read key %u for batch 0x%p is %u (0x%p)",
(unsigned) batch->read_keys_used, batch, (unsigned) (batch->used_scans - 1),
batch->data_in + sizeof(uint64_t) * (batch->used_scans + 1));
return batch->read_keys_used++;
@@ -135,7 +135,7 @@ void riscv_batch_add_nop(struct riscv_batch *batch)
riscv_fill_dmi_nop_u64(batch->target, (char *)field->in_value);
batch->last_scan = RISCV_SCAN_TYPE_NOP;
batch->used_scans++;
- LOG_DEBUG(" added NOP with in_value=0x%p", field->in_value);
+ LOG_DEBUG_IO(" added NOP with in_value=0x%p", field->in_value);
}
void dump_field(const struct scan_field *field)
@@ -143,7 +143,7 @@ void dump_field(const struct scan_field *field)
static const char * const op_string[] = {"-", "r", "w", "?"};
static const char * const status_string[] = {"+", "?", "F", "b"};
- if (debug_level < LOG_LVL_DEBUG)
+ if (debug_level < LOG_LVL_DEBUG_IO)
return;
assert(field->out_value != NULL);
@@ -158,14 +158,14 @@ void dump_field(const struct scan_field *field)
unsigned int in_data = get_field(in, DTM_DMI_DATA);
unsigned int in_address = in >> DTM_DMI_ADDRESS_OFFSET;
- log_printf_lf(LOG_LVL_DEBUG,
+ log_printf_lf(LOG_LVL_DEBUG_IO,
__FILE__, __LINE__, __PRETTY_FUNCTION__,
"%db %s %08x @%02x -> %s %08x @%02x",
field->num_bits,
op_string[out_op], out_data, out_address,
status_string[in_op], in_data, in_address);
} else {
- log_printf_lf(LOG_LVL_DEBUG,
+ log_printf_lf(LOG_LVL_DEBUG_IO,
__FILE__, __LINE__, __PRETTY_FUNCTION__, "%db %s %08x @%02x -> ?",
field->num_bits, op_string[out_op], out_data, out_address);
}