diff options
| author | Alejandro Colomar <colomar.6.4.3@gmail.com> | 2020-09-10 23:13:24 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-09-11 11:33:28 +0200 |
| commit | 86d90299aeac74da489ea3a08a0f66c311efae3a (patch) | |
| tree | 82b33360b2a73eb28aeb393002e8350e4f09315d | |
| parent | 95cc0897f709a3dd4820b7b0d859bab7f526cfd9 (diff) | |
| download | man-pages-86d90299aeac74da489ea3a08a0f66c311efae3a.tar.gz | |
timerfd_create.2: Use 'PRIxN' macros when printing C99 fixed-width integer types
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man2/timerfd_create.2 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/man2/timerfd_create.2 b/man2/timerfd_create.2 index 67a13dba35..90e35d9b56 100644 --- a/man2/timerfd_create.2 +++ b/man2/timerfd_create.2 @@ -624,6 +624,7 @@ a.out 3 1 100 #include <sys/timerfd.h> #include <time.h> #include <unistd.h> +#include <inttypes.h> /* Definition of PRIu64 */ #include <stdlib.h> #include <stdio.h> #include <stdint.h> /* Definition of uint64_t */ @@ -706,9 +707,7 @@ main(int argc, char *argv[]) tot_exp += exp; print_elapsed_time(); - printf("read: %llu; total=%llu\en", - (unsigned long long) exp, - (unsigned long long) tot_exp); + printf("read: %"PRIu64"; total=%"PRIu64"\en", exp, tot_exp); } exit(EXIT_SUCCESS); |
