X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ns-events%2Fgen-ns-events.cpp;h=80afdb6d63ed27c99510c7068436a7539d23bcf2;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hp=6afd855da1d0c986e2bbdc6e7e07b721e653b07f;hpb=1c9a0b0e83c7e073c4e576c0bed95de335b0e502;p=lttng-tools.git diff --git a/tests/utils/testapp/gen-ns-events/gen-ns-events.cpp b/tests/utils/testapp/gen-ns-events/gen-ns-events.cpp index 6afd855da..80afdb6d6 100644 --- a/tests/utils/testapp/gen-ns-events/gen-ns-events.cpp +++ b/tests/utils/testapp/gen-ns-events/gen-ns-events.cpp @@ -18,11 +18,12 @@ #include #include #include +#include -#include -#include +#include +#include -#include "signal-helper.h" +#include "signal-helper.hpp" #include "utils.h" #define LTTNG_PROC_NS_PATH_MAX 40 @@ -132,7 +133,7 @@ static int do_the_needful(int ns_flag, const char *ns_str) ret = -1; goto end; } - debug_printf("Initial %s ns inode number: %lu\n", ns_str, ns1); + debug_printf("Initial %s ns inode number: %" PRIuMAX "\n", ns_str, (uintmax_t) ns1); /* Wait on synchronization before unshare. */ if (before_unshare_wait_file_path) { @@ -155,7 +156,7 @@ static int do_the_needful(int ns_flag, const char *ns_str) ret = -1; goto end; } - debug_printf("Post unshare %s ns inode number: %lu\n", ns_str, ns2); + debug_printf("Post unshare %s ns inode number: %" PRIuMAX "\n", ns_str, (uintmax_t) ns2); /* Signal that the unshare call is completed. */ if (after_unshare_signal_file_path) {