summaryrefslogtreecommitdiffstats
path: root/src/basic/time-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-11-07 17:49:25 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-11-08 04:49:09 +0100
commit70887c5f2956f2e8c4f58563535049149db98fc2 (patch)
tree588c15c0971937cd9353fcae09fd0bcde98a0c55 /src/basic/time-util.h
parentcoredump: fix format string on 32 bits (diff)
downloadsystemd-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.h6
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"