From f082899f180431f04553e4ee3b0968020ef59188 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 2 Feb 2017 18:34:26 +0100 Subject: [PATCH] time-util: when formatting usec_t as raw integers use PRIu64 After all, usec_t is defined as uint64_t, and not as unsigned long long. --- src/basic/time-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 1fcbbaa47..265f5995a 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -565,12 +565,12 @@ void dual_timestamp_serialize(FILE *f, const char *name, dual_timestamp *t) { } int dual_timestamp_deserialize(const char *value, dual_timestamp *t) { - unsigned long long a, b; + uint64_t a, b; assert(value); assert(t); - if (sscanf(value, "%llu %llu", &a, &b) != 2) { + if (sscanf(value, "%" PRIu64 "%" PRIu64, &a, &b) != 2) { log_debug("Failed to parse dual timestamp value \"%s\": %m", value); return -EINVAL; } -- 2.30.2