if (r < 0)
goto fallback;
if (!r) {
- log_warning("%s is not inactive. Please review the %s setting.\n", target, target);
+ log_warning("%s is not inactive. Please review the %s setting.", target, target);
goto fallback;
}
break;
fallback:
- log_warning("Fallback to the single-user shell.\n");
+ log_warning("Fallback to the single-user shell.");
}
return 0;
_cleanup_free_ char *e_store = NULL, *g_store = NULL;
assert_se(cg_mask_to_string(expected, &e_store) >= 0);
- log_info("Expected mask: %s\n", e_store);
+ log_info("Expected mask: %s", e_store);
assert_se(cg_mask_to_string(got, &g_store) >= 0);
- log_info("Got mask: %s\n", g_store);
+ log_info("Got mask: %s", g_store);
}
TEST_RET(cgroup_mask, .sd_booted = true) {
}
for (i = 0; i < n; i++)
- log_info("fd=%i name=%s\n", SD_LISTEN_FDS_START + i, l[i]);
+ log_info("fd=%i name=%s", SD_LISTEN_FDS_START + i, l[i]);
sd_notify(0,
"STATUS=Starting up");
q = now(CLOCK_MONOTONIC) - t;
- log_info("%lf μs each\n", (double) q / iterations);
+ log_info("%lf μs each", (double) q / iterations);
}
TEST(id128_at) {
assert_se(s);
assert_se((size_t) r == strlen(s));
- log_info("formatted normally: %s\n", s);
+ log_info("formatted normally: %s", s);
r = json_parse(data, JSON_PARSE_SENSITIVE, &w, NULL, NULL);
assert_se(r == 0);
JSON_BUILD_STRV((char**) arr_1234))) >= 0);
assert_se(json_variant_format(a, 0, &s) >= 0);
- log_info("GOT: %s\n", s);
+ log_info("GOT: %s", s);
assert_se(json_parse(s, 0, &b, NULL, NULL) >= 0);
assert_se(json_variant_equal(a, b));
s = mfree(s);
assert_se(json_variant_format(a, 0, &s) >= 0);
- log_info("GOT: %s\n", s);
+ log_info("GOT: %s", s);
assert_se(json_parse(s, 0, &b, NULL, NULL) >= 0);
assert_se(json_variant_format(b, 0, &t) >= 0);
- log_info("GOT: %s\n", t);
+ log_info("GOT: %s", t);
assert_se(streq(s, t));
r = config_parse_memory_limit(NULL, "fake", 1, "section", 1,
limit_tests[i].limit, 1,
limit_tests[i].value, &c, NULL);
- log_info("%s=%s\t%"PRIu64"==%"PRIu64"\n",
+ log_info("%s=%s\t%"PRIu64"==%"PRIu64,
limit_tests[i].limit, limit_tests[i].value,
*limit_tests[i].result, limit_tests[i].expected);
assert_se(r >= 0);
(void) getpid();
q = now(CLOCK_MONOTONIC) - t;
- log_info(" glibc getpid(): %lf μs each\n", (double) q / iterations);
+ log_info(" glibc getpid(): %lf μs each", (double) q / iterations);
iterations *= 50; /* _cached() is about 50 times faster, so we need more iterations */
(void) getpid_cached();
q = now(CLOCK_MONOTONIC) - t;
- log_info("getpid_cached(): %lf μs each\n", (double) q / iterations);
+ log_info("getpid_cached(): %lf μs each", (double) q / iterations);
}
TEST(safe_fork) {