projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: fix '-Wformat' warnings on various platforms
[lttng-tools.git]
/
tests
/
utils
/
testapp
/
gen-ns-events
/
gen-ns-events.cpp
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 6afd855da1d0c986e2bbdc6e7e07b721e653b07f..7ecf22b358859b33f56c686ff9d60ed701679663 100644
(file)
--- a/
tests/utils/testapp/gen-ns-events/gen-ns-events.cpp
+++ b/
tests/utils/testapp/gen-ns-events/gen-ns-events.cpp
@@
-18,6
+18,7
@@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
+#include <inttypes.h>
#include <common/compat/tid.h>
#include <common/macros.h>
#include <common/compat/tid.h>
#include <common/macros.h>
@@
-132,7
+133,7
@@
static int do_the_needful(int ns_flag, const char *ns_str)
ret = -1;
goto end;
}
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) {
/* 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;
}
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) {
/* Signal that the unshare call is completed. */
if (after_unshare_signal_file_path) {
This page took
0.024447 seconds
and
4
git commands to generate.