[PATCH 4/5] test: tid_pid: don't assume the type of pthread_t
Nick Alcock <[email protected]>
| Newsgroups | dev.linux.lists.dtrace |
|---|---|
| Message-ID | <[email protected]> |
GCC 16 warns about this mismatch. Signed-off-by: Nick Alcock <[email protected]> --- test/unittest/builtinvar/tst.tid_pid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unittest/builtinvar/tst.tid_pid.sh b/test/unittest/builtinvar/tst.tid_pid.sh index e367411dcfb7d..7551f7c4b8f5c 100755 --- a/test/unittest/builtinvar/tst.tid_pid.sh +++ b/test/unittest/builtinvar/tst.tid_pid.sh @@ -51,7 +51,7 @@ int main(int c, char **v) { pthread_create(&mythr, NULL, &foo, NULL); /* Also report the pthread_t. */ - printf("created pthread_t %lld\n\n", mythr); + printf("created pthread_t %llu\n\n", (long long unsigned) mythr); fflush(stdout); /* Wait endlessly. DTrace will kill me when it is done. */ -- 2.51.0.284.g117bcb8de7