diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-07 17:49:25 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-08 04:49:09 +0100 |
commit | 70887c5f2956f2e8c4f58563535049149db98fc2 (patch) | |
tree | 588c15c0971937cd9353fcae09fd0bcde98a0c55 /src/basic/time-util.h | |
parent | coredump: fix format string on 32 bits (diff) | |
download | systemd-70887c5f2956f2e8c4f58563535049149db98fc2.tar.xz systemd-70887c5f2956f2e8c4f58563535049149db98fc2.zip |
tree-wide: add PRI_[NU]SEC, and use time format strings more
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" |