projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f977849
)
time-util: when formatting usec_t as raw integers use PRIu64
author
Lennart Poettering
<lennart@poettering.net>
Thu, 2 Feb 2017 17:34:26 +0000
(18:34 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 2 Feb 2017 19:12:31 +0000
(20:12 +0100)
After all, usec_t is defined as uint64_t, and not as unsigned long long.
src/basic/time-util.c
patch
|
blob
|
history
diff --git
a/src/basic/time-util.c
b/src/basic/time-util.c
index
4070ee1
..
fd86f1d
100644
(file)
--- 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) {
- u
nsigned long long
a, b;
+ u
int64_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;
}