fix: Add one digit to SLES minor release version
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 9 Feb 2021 16:25:57 +0000 (11:25 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Feb 2021 15:51:54 +0000 (10:51 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I150b5b5d2bd5a3fc3cadaef5fcb26a29baccba3c

abi-sle-version.sh
lttng-kernel-version.h

index 59e7d67d1c590bcf67bbd92e3d9b939230886dd1..ba95ba9315880c15740e0a2caf4d1714b4b78421 100755 (executable)
@@ -37,6 +37,6 @@ if [ "x$SLE_RELEASE_PATCH" = "x" ]; then
 fi
 
 # Combine all update numbers into one
-SLE_API_VERSION="$((SLE_RELEASE_MAJOR * 10000 + SLE_RELEASE_MINOR * 100 + SLE_RELEASE_PATCH))"
+SLE_API_VERSION="$((SLE_RELEASE_MAJOR * 100000 + SLE_RELEASE_MINOR * 100 + SLE_RELEASE_PATCH))"
 
 echo ${SLE_API_VERSION}
index 53657c92f18bc80d5a97eb12c1fa697070b379ef..6c71fbb9646690ebfd44500bb67fc47608844749 100644 (file)
 /* SUSE Linux enterprise */
 
 #define LTTNG_SLE_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) * 100000) + ((e) * 100) + (f))
 
 #ifdef SLE_API_VERSION
 #define LTTNG_SLE_VERSION_CODE \
-       ((LTTNG_LINUX_VERSION_CODE * 10000000ULL) + SLE_API_VERSION)
+       ((LTTNG_LINUX_VERSION_CODE * 100000000ULL) + SLE_API_VERSION)
 #else
 #define LTTNG_SLE_VERSION_CODE         0
 #endif
This page took 0.02613 seconds and 4 git commands to generate.