chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hostnamed: drop nss-myhostname check
[elogind.git]
/
src
/
test
/
test-time.c
diff --git
a/src/test/test-time.c
b/src/test/test-time.c
index 36a33046a218c822a432044a700fe4e1b55e247c..7c29f96a341a747cd7faf61b44c4f714a310fd79 100644
(file)
--- a/
src/test/test-time.c
+++ b/
src/test/test-time.c
@@
-84,7
+84,7
@@
static void test_format_timespan_one(usec_t x, usec_t accuracy) {
char l[FORMAT_TIMESPAN_MAX];
usec_t y;
char l[FORMAT_TIMESPAN_MAX];
usec_t y;
- log_info(
"%llu (at accuracy %llu)", (unsigned long long) x, (unsigned long long)
accuracy);
+ log_info(
USEC_FMT" (at accuracy "USEC_FMT")", x,
accuracy);
r = format_timespan(l, sizeof(l), x, accuracy);
assert_se(r);
r = format_timespan(l, sizeof(l), x, accuracy);
assert_se(r);
@@
-93,7
+93,7
@@
static void test_format_timespan_one(usec_t x, usec_t accuracy) {
assert_se(parse_sec(l, &y) >= 0);
assert_se(parse_sec(l, &y) >= 0);
- log_info(" =
%llu", (unsigned long long)
y);
+ log_info(" =
"USEC_FMT,
y);
if (accuracy <= 0)
accuracy = 1;
if (accuracy <= 0)
accuracy = 1;