aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2019-04-03 17:31:57 +0200
committerTomas Vanek <vanekt@fbl.cz>2019-05-14 19:38:12 +0100
commit2caa3455ada686baea01a50d092e4244c461e101 (patch)
treebdb3f7e57824f549c6dc78e894939fb12f1f13ae
parent585fcea14aeaed41a6e7593dcff4e44101364243 (diff)
downloadriscv-openocd-2caa3455ada686baea01a50d092e4244c461e101.zip
riscv-openocd-2caa3455ada686baea01a50d092e4244c461e101.tar.gz
riscv-openocd-2caa3455ada686baea01a50d092e4244c461e101.tar.bz2
flash/nor: use command_print() in command "flash banks"
The command uses LOG_USER() instead of command_print(). Fix it. This change was part of http://openocd.zylin.com/1815 from Paul Fertser and has been extracted and rebased to simplify the review. Change-Id: I92e5e5954a75b96093b3ed6af73a7536c063b639 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5083 Tested-by: jenkins
-rw-r--r--src/flash/nor/tcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index 0daa531..b336cff 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -1167,7 +1167,7 @@ COMMAND_HANDLER(handle_flash_banks_command)
unsigned n = 0;
for (struct flash_bank *p = flash_bank_list(); p; p = p->next, n++) {
- LOG_USER("#%d : %s (%s) at " TARGET_ADDR_FMT ", size 0x%8.8" PRIx32 ", "
+ command_print(CMD, "#%d : %s (%s) at " TARGET_ADDR_FMT ", size 0x%8.8" PRIx32 ", "
"buswidth %u, chipwidth %u", p->bank_number,
p->name, p->driver->name, p->base, p->size,
p->bus_width, p->chip_width);