fix: Add one digit to RHEL major release version
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 9 Feb 2021 16:28:27 +0000 (11:28 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 9 Feb 2021 19:33:39 +0000 (14:33 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I4e8b10ee985db59f7795e026486b3d47b76b5728

include/lttng/kernel-version.h

index d3fce8e729c2a084e5f9169016b3cb3d6aa88c20..d292c0875d7ccf99d0daef86344b863c5406f130 100644 (file)
 /* RHEL */
 
 #define LTTNG_RHEL_KERNEL_VERSION(a, b, c, d, e, f) \
-       (((LTTNG_KERNEL_VERSION(a, b, c)) * 10000000ULL) + ((d) * 10000) + ((e) * 100) + (f))
+       (((LTTNG_KERNEL_VERSION(a, b, c)) * 100000000ULL) + ((d) * 10000) + ((e) * 100) + (f))
 
 #ifdef RHEL_API_VERSION
 #define LTTNG_RHEL_VERSION_CODE \
-       ((LTTNG_LINUX_VERSION_CODE * 10000000ULL) + RHEL_API_VERSION)
+       ((LTTNG_LINUX_VERSION_CODE * 100000000ULL) + RHEL_API_VERSION)
 #else
 #define LTTNG_RHEL_VERSION_CODE                0
 #endif
This page took 0.035539 seconds and 4 git commands to generate.