This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/6720

-- gerrit

commit c4ff319696bcb582669814435c0a49886e3774e6
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Thu Nov 18 00:27:47 2021 +0100

    flash/psoc6: initialize usage field
    
    The missing initialization triggers a run-time error message:
            Error: BUG: command 'psoc6 reset_halt' does not have the '.usage'
                    field filled out
    
    Change-Id: I975e4ba99bd939aa924a9d62b1ab76b2ab5bf193
    Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>

diff --git a/src/flash/nor/psoc6.c b/src/flash/nor/psoc6.c
index d3a4b3702..198dff5c8 100644
--- a/src/flash/nor/psoc6.c
+++ b/src/flash/nor/psoc6.c
@@ -1015,7 +1015,7 @@ static const struct command_registration 
psoc6_exec_command_handlers[] = {
                .name = "reset_halt",
                .handler = psoc6_handle_reset_halt,
                .mode = COMMAND_EXEC,
-               .usage = NULL,
+               .usage = "",
                .help = "Tries to simulate broken Vector Catch",
        },
        COMMAND_REGISTRATION_DONE

-- 

Reply via email to