Fix: libcounter: use LTTNG_UST_ALIGN
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 Nov 2020 19:40:04 +0000 (14:40 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 Nov 2020 19:40:04 +0000 (14:40 -0500)
ALIGN() on FreeBSD does not expect the same number of arguments.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I8ce4cc94bc840a11dc30ae0679f6b2c41e11bc12

libcounter/counter.c

index 4010d5dd7f152b8c29d300d4e15ac751a6c04cc5..640705d32d4bdc7d2f8e50d951c781bf17d633cf 100644 (file)
@@ -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. */
This page took 0.024797 seconds and 4 git commands to generate.