X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fstop.c;h=7c89e37e577af5af2f52ca2600795f0c9f1bd7d7;hp=6ed67fdabcaaf0194cbbe911c3853609aa3720de;hb=f73fabfda365d22e7dd180fb1614e37c446fbd9e;hpb=0cd3b1d4a59305a7efb608605d2e74c0ea347383 diff --git a/src/bin/lttng/commands/stop.c b/src/bin/lttng/commands/stop.c index 6ed67fdab..7c89e37e5 100644 --- a/src/bin/lttng/commands/stop.c +++ b/src/bin/lttng/commands/stop.c @@ -47,11 +47,12 @@ static struct poptOption long_options[] = { */ static void usage(FILE *ofp) { - fprintf(ofp, "usage: lttng stop [options] [NAME]\n"); + fprintf(ofp, "usage: lttng stop [NAME] [OPTIONS]\n"); fprintf(ofp, "\n"); fprintf(ofp, "Where NAME is an optional session name. If not specified, lttng will\n"); fprintf(ofp, "get it from the configuration directory (.lttng).\n"); fprintf(ofp, "\n"); + fprintf(ofp, "Options:\n"); fprintf(ofp, " -h, --help Show this help\n"); fprintf(ofp, " --list-options Simple listing of options\n"); fprintf(ofp, "\n"); @@ -78,7 +79,7 @@ static int stop_tracing(void) ret = lttng_stop_tracing(session_name); if (ret < 0) { switch (-ret) { - case LTTCOMM_TRACE_ALREADY_STOPPED: + case LTTNG_ERR_TRACE_ALREADY_STOPPED: WARN("Tracing already stopped for session %s", session_name); break; default: