From: Michael Jeanson Date: Tue, 9 Feb 2021 16:28:27 +0000 (-0500) Subject: fix: Add one digit to RHEL major release version X-Git-Tag: v2.11.8~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9ecc902d927da01b3fe5e0ba35b1210a56960210;p=lttng-modules.git fix: Add one digit to RHEL major release version Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: I5526088cf00e11c2571dac0875e402088cfa581f --- diff --git a/lttng-kernel-version.h b/lttng-kernel-version.h index 45aab6ed..d2357835 100644 --- a/lttng-kernel-version.h +++ b/lttng-kernel-version.h @@ -111,13 +111,13 @@ LTTNG_DEBIAN_KERNEL_VERSION(a_high, b_high, c_high, d_high, e_high, f_high)) #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)) /* RHEL */ #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