This is an automated email from Gerrit.

Antonio Borneo ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/5083

-- gerrit

commit 22476f08012fbb321a3ffc24e9e465e2e43d4b9b
Author: Paul Fertser <[email protected]>
Date:   Wed Apr 3 17:31:57 2019 +0200

    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 <[email protected]>
    Signed-off-by: Tomas Vanek <[email protected]>
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index 502f814..671b3b6 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);

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to