helper/command: change prototype of command_print/command_print_sameline
[fw/openocd] / doc / manual / primer / commands.txt
index a626f56b56d3925641b91c6661e96be52c068417..8ea228205bcf4eddcc2d1259c3e6813dd6429658 100644 (file)
@@ -16,7 +16,7 @@ COMMAND_HANDLER(handle_hello_command)
        const char *sep, *name;
        int retval = CALL_COMMAND_HANDLER(handle_hello_args);
        if (ERROR_OK == retval)
-               command_print(CMD_CTX, "Greetings%s%s!", sep, name);
+               command_print(CMD, "Greetings%s%s!", sep, name);
        return retval;
 }
 @endcode