diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-02 18:34:26 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-17 17:58:36 +0200 |
commit | f082899f180431f04553e4ee3b0968020ef59188 (patch) | |
tree | 271e78cadd62d865fb7e9d64172fb1d054c7d5d1 /src | |
parent | f5ec357713381a95b30fa4f3d18aa092a632cfa9 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/time-util.c | 4 |
1 files 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; } |