X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fenable_consumer.c;h=e59608950bb122386fa3eeaf3e22d5c5ace753da;hb=d8fbe2a9cc6ace367bfb5428df3e7649ac012f32;hp=77e3ad9112ff2d3504df7b8f2ed078e7f56f2a2e;hpb=16de1a24449a4ea2ea57f8183abb4dd34255ac66;p=lttng-tools.git diff --git a/src/bin/lttng/commands/enable_consumer.c b/src/bin/lttng/commands/enable_consumer.c index 77e3ad911..e59608950 100644 --- a/src/bin/lttng/commands/enable_consumer.c +++ b/src/bin/lttng/commands/enable_consumer.c @@ -78,7 +78,7 @@ static void usage(FILE *ofp) fprintf(ofp, "Options:\n"); fprintf(ofp, " -h, --help Show this help\n"); fprintf(ofp, " --list-options Simple listing of options\n"); - fprintf(ofp, " -s, --session=NAME Apply to session name\n"); + fprintf(ofp, " -s, --session NAME Apply to session name\n"); fprintf(ofp, " -k, --kernel Apply to the kernel tracer\n"); fprintf(ofp, " -u, --userspace Apply to the user-space tracer\n"); fprintf(ofp, "\n"); @@ -208,7 +208,7 @@ static int enable_consumer(char *session_name) if (ret < 0) { ERR("Enabling consumer for session %s: %s", session_name, lttng_strerror(ret)); - if (ret == -LTTCOMM_ENABLE_CONSUMER_FAIL) { + if (ret == -LTTNG_ERR_ENABLE_CONSUMER_FAIL) { ERR("Perhaps the session was previously started?"); } goto error;