code cleanup
[fw/openocd] / src / target / trace.c
index f257592b23daaabb075ed8fa7b5079e8c7964696..a8ec143ef0b67ca9c83a9ec3a88c386087369dcb 100644 (file)
@@ -21,7 +21,7 @@
 #include "config.h"
 #endif
 
-#include "log.h"
+#include <helper/log.h>
 #include "trace.h"
 #include "target.h"
 
@@ -159,25 +159,25 @@ COMMAND_HANDLER(handle_trace_history_command)
 static const struct command_registration trace_exec_command_handlers[] = {
        {
                .name = "history",
-               .handler = &handle_trace_history_command,
+               .handler = handle_trace_history_command,
                .mode = COMMAND_EXEC,
-               .help = "display trace history, clear history or set [size]",
-               .usage = "[clear|<size>]",
+               .help = "display trace history, clear history or set size",
+               .usage = "['clear'|size]",
        },
        {
                .name = "point",
-               .handler = &handle_trace_point_command,
+               .handler = handle_trace_point_command,
                .mode = COMMAND_EXEC,
                .help = "display trace points, clear list of trace points, "
-                       "or add new tracepoint at [address]",
-               .usage = "[clear|<address>]",
+                       "or add new tracepoint at address",
+               .usage = "['clear'|address]",
        },
        COMMAND_REGISTRATION_DONE
 };
 static const struct command_registration trace_command_handlers[] = {
        {
                .name = "trace",
-               .mode = COMMAND_ANY,
+               .mode = COMMAND_EXEC,
                .help = "trace command group",
                .chain = trace_exec_command_handlers,
        },