From: Lennart Poettering Date: Thu, 2 Feb 2017 17:34:26 +0000 (+0100) Subject: time-util: when formatting usec_t as raw integers use PRIu64 X-Git-Tag: v234~579^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74c5b33b0aaed6aae67e858926f5b1558e05b148;p=platform%2Fupstream%2Fsystemd.git 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. --- diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 4070ee1..fd86f1d 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -554,12 +554,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; }