From: Alejandro Colomar Date: Thu, 10 Sep 2020 21:13:24 +0000 (+0200) Subject: timerfd_create.2: Use 'PRIxN' macros when printing C99 fixed-width integer types X-Git-Tag: man-pages-5.09~380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86d90299aeac74da489ea3a08a0f66c311efae3a;p=thirdparty%2Fman-pages.git timerfd_create.2: Use 'PRIxN' macros when printing C99 fixed-width integer types Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- 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 #include #include +#include /* Definition of PRIu64 */ #include #include #include /* 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);