X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Funit%2Fust-elf%2Fust-elf.c;h=7e924a9099b563852a8d7875e0983e19e16beb00;hb=e03d7c66c57bf268b87296566a5160039f35ccfb;hp=a1230b206ce0ace87d5f95cbc47c3b50b3036bfc;hpb=2adb7ad28124fdbc0ad61bcada1c7dbceb03e9ab;p=lttng-ust.git diff --git a/tests/unit/ust-elf/ust-elf.c b/tests/unit/ust-elf/ust-elf.c index a1230b20..7e924a90 100644 --- a/tests/unit/ust-elf/ust-elf.c +++ b/tests/unit/ust-elf/ust-elf.c @@ -4,13 +4,14 @@ * Copyright (C) 2015 Antoine Busque */ +#include #include #include #include #include #include -#include +#include "common/elf.h" #include "tap.h" #define NUM_ARCH 4 @@ -76,7 +77,7 @@ void test_elf(const char *test_dir, const char *arch, uint64_t exp_memsz, ret = lttng_ust_elf_get_memsz(elf, &memsz); ok(ret == 0, "lttng_ust_elf_get_memsz returned successfully"); ok(memsz == exp_memsz, - "memsz - expected: %lu, got: %lu", + "memsz - expected: %" PRIu64 ", got: %" PRIu64, exp_memsz, memsz); ret = lttng_ust_elf_get_build_id(elf, &build_id, &build_id_len, @@ -84,7 +85,7 @@ void test_elf(const char *test_dir, const char *arch, uint64_t exp_memsz, ok(ret == 0, "lttng_ust_elf_get_build_id returned successfully"); ok(has_build_id == 1, "build id marked as found"); ok(build_id_len == BUILD_ID_LEN, - "build_id_len - expected: %u, got: %u", + "build_id_len - expected: %u, got: %zu", BUILD_ID_LEN, build_id_len); ok(memcmp(build_id, exp_build_id, build_id_len) == 0, "build_id has expected value");