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");
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;