From a08cef76331032bb92a5200684bd656feefe57aa Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Mon, 3 Oct 2016 08:15:04 -0700 Subject: [PATCH] Change invalid access from error to user message. It's not a failure in the debugger or even a real problem if a user asks to access memory that's not accessible. Change-Id: I30b8424d5265d1996fe4826012ed160a83f0bc6c --- src/target/riscv/riscv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index c21ff27a1..0d78c7a13 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -2249,10 +2249,10 @@ static int riscv_read_memory(struct target *target, uint32_t address, } if (result_value != 0) { - LOG_ERROR("Core got an exception (0x%x) while reading from 0x%x", + LOG_USER("Core got an exception (0x%x) while reading from 0x%x", result_value, address + size * (count-1)); if (count > 1) { - LOG_ERROR("(It may have failed between 0x%x and 0x%x as well, but we " + LOG_USER("(It may have failed between 0x%x and 0x%x as well, but we " "didn't check then.)", address, address + size * (count-2) + size - 1); }