Fix: UST app major version check
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.c
index e5d8b5707dea19b10810a89ecae52191b189fc15..7f4e9f1e0c928df31c5b5a39b1614e54f22361f8 100644 (file)
@@ -2921,12 +2921,12 @@ int ust_app_validate_version(int sock)
        }
 
        /* Validate version */
        }
 
        /* Validate version */
-       if (app->version.major > UST_APP_MAJOR_VERSION) {
+       if (app->version.major != UST_APP_MAJOR_VERSION) {
                goto error;
        }
 
        DBG2("UST app PID %d is compatible with major version %d "
                goto error;
        }
 
        DBG2("UST app PID %d is compatible with major version %d "
-                       "(supporting <= %d)", app->pid, app->version.major,
+                       "(supporting == %d)", app->pid, app->version.major,
                        UST_APP_MAJOR_VERSION);
        app->compatible = 1;
        rcu_read_unlock();
                        UST_APP_MAJOR_VERSION);
        app->compatible = 1;
        rcu_read_unlock();
@@ -2935,7 +2935,7 @@ int ust_app_validate_version(int sock)
 
 error:
        DBG2("UST app PID %d is not compatible with major version %d "
 
 error:
        DBG2("UST app PID %d is not compatible with major version %d "
-                       "(supporting <= %d)", app->pid, app->version.major,
+                       "(supporting == %d)", app->pid, app->version.major,
                        UST_APP_MAJOR_VERSION);
        app->compatible = 0;
        rcu_read_unlock();
                        UST_APP_MAJOR_VERSION);
        app->compatible = 0;
        rcu_read_unlock();
This page took 0.023839 seconds and 4 git commands to generate.