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/5704

-- gerrit

commit 76f69e6ac6157d32d3c4e5e9e303a643398d5118
Author: Antonio Borneo <[email protected]>
Date:   Fri May 29 11:13:21 2020 +0200

    flash/nor: log flash write statistics
    
    Commit 7f260f5009a7 ("helper/command: Handle Tcl return values
    consistently") moves from log to command output all the text
    printed through command_print(). This is not always the best
    choice, as in the case of statistics about flash write speed.
    
    Explicitly log-out the statistics text instead of adding them to
    the command output through command_print().
    
    Change-Id: I532a5a7cbcedf87ee6f14728f6eb034ae36c69fb
    Signed-off-by: Antonio Borneo <[email protected]>
    Reported-by: Jonatan Hatakeyama Zeidler <[email protected]>

diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index fb2053b..bf5fbb9 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -463,7 +463,7 @@ COMMAND_HANDLER(handle_flash_write_image_command)
        }
 
        if ((ERROR_OK == retval) && (duration_measure(&bench) == ERROR_OK)) {
-               command_print(CMD, "wrote %" PRIu32 " bytes from file %s "
+               LOG_USER("wrote %" PRIu32 " bytes from file %s "
                        "in %fs (%0.3f KiB/s)", written, CMD_ARGV[0],
                        duration_elapsed(&bench), duration_kbps(&bench, 
written));
        }

-- 


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

Reply via email to