Fix: saturate verbosity level to 3
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 1d218b170ec31112f750d5ffae02ff3d41080870..4d700d1e54130fae8ae19369e8bdc8e3b7ca7771 100644 (file)
@@ -4238,7 +4238,10 @@ static int set_option(int opt, const char *arg, const char *optname)
                if (arg) {
                        lttng_opt_verbose = config_parse_value(arg);
                } else {
-                       lttng_opt_verbose += 1;
+                       /* Only 3 level of verbosity (-vvv). */
+                       if (lttng_opt_verbose < 3) {
+                               lttng_opt_verbose += 1;
+                       }
                }
                break;
        case 'Z':
This page took 0.02338 seconds and 4 git commands to generate.