X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmain.c;h=4968ee2a937194d2f344fa6a2b232656eec6acc9;hp=4c885d7b74f63f2c51447932fe36afccabb81d8e;hb=6d9a9c6575be8bcf86f404236a0f4a78b4889881;hpb=90936dcf0968343f20b2f6fd365b9c015cdb9717 diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 4c885d7b7..4968ee2a9 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -4204,12 +4204,10 @@ error_add_context: cmd_ctx->lsm->u.rotate_setup.timer_us, cmd_ctx->lsm->u.rotate_setup.size, notification_thread_handle); - if (ret < 0) { - ret = -ret; + if (ret != LTTNG_OK) { goto error; } - ret = LTTNG_OK; break; } case LTTNG_ROTATION_SCHEDULE_GET_TIMER_PERIOD: @@ -4931,7 +4929,7 @@ static int set_option(int opt, const char *arg, const char *optname) } else if (string_match(optname, "no-kernel")) { config.no_kernel = true; } else if (string_match(optname, "quiet") || opt == 'q') { - lttng_opt_quiet = true; + config.quiet = true; } else if (string_match(optname, "verbose") || opt == 'v') { /* Verbose level can increase using multiple -v */ if (arg) {