X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fust-multi-test%2Fust-multi-test.c;h=814e4517dc366295f2cf6bb990c5ac8374e3f919;hb=72aa0d36b5508c151a1f62497479a7052f388f46;hp=b0ef25a48af2e6c8e8201dc6e6adfb28d907c941;hpb=a3bb4b278286aaa20867ba68bd5b5a5853974126;p=lttng-ust.git diff --git a/tests/ust-multi-test/ust-multi-test.c b/tests/ust-multi-test/ust-multi-test.c index b0ef25a4..814e4517 100644 --- a/tests/ust-multi-test/ust-multi-test.c +++ b/tests/ust-multi-test/ust-multi-test.c @@ -19,6 +19,7 @@ */ #define _LARGEFILE64_SOURCE +#define _GNU_SOURCE #include #include #include @@ -27,6 +28,8 @@ #include #include #include +#include +#include #include #include #include @@ -39,6 +42,7 @@ #include #include <../../libringbuffer/backend.h> #include <../../libringbuffer/frontend.h> +#include "../../liblttng-ust/compat.h" /* For ENODATA */ #define NR_SESSIONS 4 #define NR_CHANNELS 1 @@ -210,8 +214,8 @@ int consume_stream(struct lttng_ust_shm_handle *handle, int cpu, char *outfile) struct channel *chan; struct lttng_ust_lib_ring_buffer *buf; int outfd, ret; - int shm_fd, wait_fd; - uint64_t memory_map_size; + int *shm_fd, *wait_fd; + uint64_t *memory_map_size; chan = shmp(handle, handle->chan); @@ -259,7 +263,7 @@ int consume_stream(struct lttng_ust_shm_handle *handle, int cpu, char *outfile) printf("WRITE: copy %lu bytes\n", read_size); copy_size = write(outfd, ptr, read_size); if (copy_size < read_size) { - printf("write issue: copied %zd, expected %lu\n", copy_size, read_size); + printf("write issue: copied %lu, expected %lu\n", copy_size, read_size); } lib_ring_buffer_put_next_subbuf(buf, handle); }