From: Mathieu Desnoyers Date: Thu, 26 Nov 2020 19:40:04 +0000 (-0500) Subject: Fix: libcounter: use LTTNG_UST_ALIGN X-Git-Tag: v2.13.0-rc1~428 X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=00adec46a40302f315a5d18b3f4b601beb6cd059 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 --- 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. */