X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fview.c;h=c9a5fdc3e09b0f356096a25a051c55d730ea86c8;hb=0d5a66ffc18fe9abe115c66b664df71084ad1fc6;hp=09acc30f42d20803a993c4a777a8496e976b9b74;hpb=38b4ef1b199ddb15db78774a39e9c524ca7e2d24;p=lttng-tools.git diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index 09acc30f4..c9a5fdc3e 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -32,6 +32,12 @@ static char *opt_trace_path; static const char *babeltrace_bin = CONFIG_BABELTRACE_BIN; //static const char *lttv_gui_bin = CONFIG_LTTV_GUI_BIN; +#ifdef LTTNG_EMBED_HELP +static const char help_msg[] = +#include +; +#endif + enum { OPT_HELP = 1, OPT_LIST_OPTIONS, @@ -253,12 +259,12 @@ static int spawn_viewer(const char *trace_path) } else { PERROR("exec: %s", viewer_bin); } - free(argv); ret = CMD_FATAL; goto error; } error: + free(argv); return ret; }