From 00adec46a40302f315a5d18b3f4b601beb6cd059 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 26 Nov 2020 14:40:04 -0500 Subject: [PATCH] Fix: libcounter: use LTTNG_UST_ALIGN ALIGN() on FreeBSD does not expect the same number of arguments. Signed-off-by: Mathieu Desnoyers Change-Id: I8ce4cc94bc840a11dc30ae0679f6b2c41e11bc12 --- libcounter/counter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcounter/counter.c b/libcounter/counter.c index 4010d5dd..640705d3 100644 --- a/libcounter/counter.c +++ b/libcounter/counter.c @@ -75,9 +75,9 @@ static int lttng_counter_layout_init(struct lib_counter *counter, int cpu, int s counters_offset = shm_length; shm_length += counter_size * nr_elem; overflow_offset = shm_length; - shm_length += ALIGN(nr_elem, 8) / 8; + shm_length += LTTNG_UST_ALIGN(nr_elem, 8) / 8; underflow_offset = shm_length; - shm_length += ALIGN(nr_elem, 8) / 8; + shm_length += LTTNG_UST_ALIGN(nr_elem, 8) / 8; layout->shm_len = shm_length; if (counter->is_daemon) { /* Allocate and clear shared memory. */ -- 2.34.1