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.12.5~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0fbfe06e225db2669933c46f8331599eb7d477ce;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: Iac1572bde82541f4eeb18004534e750a53e90da8 --- diff --git a/lttng-kernel-version.h b/lttng-kernel-version.h index f4e86c98..ed953fda 100644 --- a/lttng-kernel-version.h +++ b/lttng-kernel-version.h @@ -106,13 +106,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