diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-08 08:09:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 08:09:40 -0500 |
commit | a809cee58249cc2f42222f1ab5d4746d634c2668 (patch) | |
tree | 1dbd042bd61e17b01ad12143dfb171ecd4e7dbcd /src/basic/time-util.h | |
parent | b719b26cb34e8f2ac752ae7dca2c100b656195a4 (diff) | |
parent | 6e2b4a6994e29544cb25e5387961d8a9dcf65063 (diff) |
Merge pull request #4612 from keszybz/format-strings
Format string tweaks (and a small fix on 32bit)
Diffstat (limited to 'src/basic/time-util.h')
-rw-r--r-- | src/basic/time-util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/basic/time-util.h b/src/basic/time-util.h index 558b0b5b7f..f67a4474ed 100644 --- a/src/basic/time-util.h +++ b/src/basic/time-util.h @@ -29,8 +29,10 @@ typedef uint64_t usec_t; typedef uint64_t nsec_t; -#define NSEC_FMT "%" PRIu64 -#define USEC_FMT "%" PRIu64 +#define PRI_NSEC PRIu64 +#define PRI_USEC PRIu64 +#define NSEC_FMT "%" PRI_NSEC +#define USEC_FMT "%" PRI_USEC #include "macro.h" |