From 70887c5f2956f2e8c4f58563535049149db98fc2 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Mon, 7 Nov 2016 11:49:25 -0500 Subject: tree-wide: add PRI_[NU]SEC, and use time format strings more --- src/basic/time-util.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/basic/time-util.h') 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" -- cgit v1.2.3-54-g00ecf