X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Ftarget_request.c;h=ec3d48e2603f2f2fe4eaa36eeafaeaef726e79fa;hb=b1256894598296b54a1827e7ac797ad1c60a0b18;hp=fc0ba1ac0a615955042eac099d58a8fe25249498;hpb=c79cca04bed78839a18e73f3996805eb8001a812;p=openocd.git diff --git a/src/target/target_request.c b/src/target/target_request.c index fc0ba1ac0a..ec3d48e260 100644 --- a/src/target/target_request.c +++ b/src/target/target_request.c @@ -27,12 +27,13 @@ #include "config.h" #endif +#include +#include + #include "target.h" #include "target_request.h" #include "target_type.h" -#include #include "trace.h" -#include static int charmsg_mode = 0; @@ -302,10 +303,10 @@ COMMAND_HANDLER(handle_target_request_debugmsgs_command) static const struct command_registration target_req_exec_command_handlers[] = { { .name = "debugmsgs", - .handler = &handle_target_request_debugmsgs_command, + .handler = handle_target_request_debugmsgs_command, .mode = COMMAND_EXEC, - .help = "set reception of debug messages from target", - .usage = "(enable|disable)", + .help = "display and/or modify reception of debug messages from target", + .usage = "['enable'|'charmsg'|'disable']", }, COMMAND_REGISTRATION_DONE };