From e54f6037d4a31d7dd55ab69a4bc457b749462e6d Mon Sep 17 00:00:00 2001 From: nirenjan Date: Mon, 19 Jul 2021 11:15:42 -0700 Subject: [PATCH] Fix pinelog builds on MacOS --- lib/pinelog/bench_pinelog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pinelog/bench_pinelog.c b/lib/pinelog/bench_pinelog.c index e9d6b8b..419f61b 100644 --- a/lib/pinelog/bench_pinelog.c +++ b/lib/pinelog/bench_pinelog.c @@ -12,6 +12,7 @@ #include #include +#include #include #define BENCH_COUNT 100000 @@ -36,7 +37,7 @@ static void print_time_difference(const char *type, struct timespec *ts) tp_usec = timeper / 1000; tp_nsec = timeper % 1000; - printf("# %s %lu.%03lu\u03BCs/log (Total %lu.%09lds)\n", + printf("# %s %"PRIu64".%03"PRIu64"\u03BCs/log (Total %lu.%09lds)\n", type, tp_usec, tp_nsec, ret.tv_sec, ret.tv_nsec); }