helper/command: change prototype of command_print/command_print_sameline
[fw/openocd] / src / server / gdb_server.c
index 95e6c04914ebbd027e109e2dbd85a931b7dd6f9c..c6cf7d350e076d438832d4de9bb038ec2f48218b 100644 (file)
@@ -3494,7 +3494,7 @@ COMMAND_HANDLER(handle_gdb_sync_command)
                return ERROR_COMMAND_SYNTAX_ERROR;
 
        if (current_gdb_connection == NULL) {
-               command_print(CMD_CTX,
+               command_print(CMD,
                        "gdb_sync command can only be run from within gdb using \"monitor gdb_sync\"");
                return ERROR_FAIL;
        }