Fix kernel version to only test major version
authorDavid Goulet <dgoulet@efficios.com>
Mon, 23 Jan 2012 18:31:16 +0000 (13:31 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 23 Jan 2012 18:31:16 +0000 (13:31 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/kernel.c

index 3b0d6e5f5ee05146aff5d2e31b61517577eed62b..d9e047fc3f5cdcc50a72ea68d0a7f29fa49b159b 100644 (file)
@@ -625,27 +625,14 @@ int kernel_validate_version(int tracer_fd)
        /* Validate version */
        if (version.version > KERN_MODULES_VERSION) {
                goto error_version;
-       } else {
-               if (version.patchlevel > KERN_MODULES_PATCHLEVEL) {
-                       goto error_version;
-               }
-               else {
-                       if (version.sublevel > KERN_MODULES_SUBLEVEL) {
-                               goto error_version;
-                       }
-               }
        }
 
-       DBG2("Kernel tracer version validated (%d.%d.%d)", version.version,
-                       version.patchlevel, version.sublevel);
-
+       DBG2("Kernel tracer version validated (major version %d)", version.version);
        return 0;
 
 error_version:
-       ERR("Kernel version is not compatible %d.%d.%d (supporting <= %d.%d.%d)",
-                       version.version, version.patchlevel, version.sublevel,
-                       KERN_MODULES_VERSION, KERN_MODULES_PATCHLEVEL,
-                       KERN_MODULES_SUBLEVEL);
+       ERR("Kernel major version %d is not compatible (supporting <= %d)",
+                       version.version, KERN_MODULES_VERSION)
        ret = -1;
 
 error:
This page took 0.040129 seconds and 4 git commands to generate.