tree-wide: FORMAT_TIMESTAMP() or friends must be used as a function argument

Follow-ups for #20109.
This commit is contained in:
Yu Watanabe
2021-07-15 20:03:46 +09:00
parent fa3f917a25
commit f843f85da8
5 changed files with 61 additions and 90 deletions
+1 -2
View File
@@ -384,8 +384,7 @@ static void test_FORMAT_TIMESTAMP(void) {
assert_se(parse_timestamp(buf, &y) >= 0);
assert_se(x / USEC_PER_SEC == y / USEC_PER_SEC);
char *t = FORMAT_TIMESTAMP(x);
assert_se(streq(t, buf));
assert_se(streq(FORMAT_TIMESTAMP(x), buf));
}
}