summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-02-02 18:34:26 +0100
committerLennart Poettering <lennart@poettering.net>2017-02-02 20:12:31 +0100
commit74c5b33b0aaed6aae67e858926f5b1558e05b148 (patch)
treee5f4e106d161dd387c86b32d0389e9dd716a4358 /src
parentf977849c244b789c3530a4da8e00f2ad98c79f1f (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/time-util.c b/src/basic/time-util.c
index 4070ee182e..fd86f1d449 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;
}