if (enforce > 0) {
if (!initialized)
return log_struct_errno(LOG_EMERG, SYNTHETIC_ERRNO(EIO),
- LOG_MESSAGE("Failed to load SELinux policy :%m"),
+ LOG_MESSAGE("Failed to load SELinux policy: %m"),
LOG_MESSAGE_ID(SD_MESSAGE_SELINUX_FAILED_STR));
log_notice("Failed to load new SELinux policy. Continuing with old policy.");
if (r < 0) {
const char *desc;
(void) sd_event_source_get_description(s->timer_event_source, &desc);
- log_unit_warning_errno(UNIT(s), r, "Failed to set timeout time for event source '%s', ignoring %m", strna(desc));
+ log_unit_warning_errno(UNIT(s), r, "Failed to set timeout time for event source '%s', ignoring: %m", strna(desc));
}
}
f = fopen("/usr/share/X11/xkb/rules/base.lst", "re");
if (!f)
- return log_error_errno(errno, "Failed to open keyboard mapping list. %m");
+ return log_error_errno(errno, "Failed to open keyboard mapping list: %m");
if (streq(argv[0], "list-x11-keymap-models"))
look_for = MODELS;
if (next > 0) {
r = sd_event_source_set_time(s, n + next);
if (r < 0)
- return log_error_errno(r, "sd_event_source_set_time() failed. %m");
+ return log_error_errno(r, "sd_event_source_set_time() failed: %m");
r = sd_event_source_set_enabled(s, SD_EVENT_ONESHOT);
if (r < 0)
- return log_error_errno(r, "sd_event_source_set_enabled() failed. %m");
+ return log_error_errno(r, "sd_event_source_set_enabled() failed: %m");
}
return 0;
if (r == -ESRCH)
return log_error_errno(r, "Parent already died?");
if (r < 0)
- return log_error_errno(r, "Failed to send SIGUSR2 signal to parent. %m");
+ return log_error_errno(r, "Failed to send SIGUSR2 signal to parent: %m");
}
}
if (r == -ESRCH)
return log_error_errno(r, "Parent already died?");
if (r < 0)
- return log_error_errno(r, "Failed to send SIGUSR2 signal to parent. %m");
+ return log_error_errno(r, "Failed to send SIGUSR2 signal to parent: %m");
}
}
if (mem_available > ctx.mem_total)
return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
- "MemAvailable (%" PRIu64 ") cannot be greater than MemTotal (%" PRIu64 ") %m",
+ "MemAvailable (%" PRIu64 ") cannot be greater than MemTotal (%" PRIu64 ")",
mem_available,
ctx.mem_total);
if (swap_free > ctx.swap_total)
return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
- "SwapFree (%" PRIu64 ") cannot be greater than SwapTotal (%" PRIu64 ") %m",
+ "SwapFree (%" PRIu64 ") cannot be greater than SwapTotal (%" PRIu64 ")",
swap_free,
ctx.swap_total);
r = mdns_notify_browsers_goodbye(scope);
if (r < 0)
- log_warning_errno(r, "mDNS: Failed to notify service subscribers of goodbyes, ignoring: %m");
+ log_warning_errno(r, "mDNS: Failed to notify service subscribers of goodbyes, ignoring: %m");
if (dns_cache_expiry_in_one_second(&scope->cache, usec)) {
r = sd_event_add_time_relative(
0);
if (r < 0) {
- log_debug_errno(r, "Failed to add syslog() rule for architecture %s, skipping %m", seccomp_arch_to_string(arch));
+ log_debug_errno(r, "Failed to add syslog() rule for architecture %s, skipping: %m", seccomp_arch_to_string(arch));
continue;
}
if (ERRNO_IS_NEG_SECCOMP_FATAL(r))
return r;
if (r < 0)
- log_debug_errno(r, "Failed to install syslog protection rules for architecture %s, skipping %m",
+ log_debug_errno(r, "Failed to install syslog protection rules for architecture %s, skipping: %m",
seccomp_arch_to_string(arch));
}
ASSERT_OK(unit_patch_contexts(u));
r = unit_start(u, NULL);
if (r < 0)
- return log_error_errno(r, "Unit start failed %m");
+ return log_error_errno(r, "Unit start failed: %m");
while (!IN_SET(SERVICE(u)->state, SERVICE_DEAD, SERVICE_FAILED)) {
r = sd_event_run(m->event, UINT64_MAX);
if (r < 0)
- return log_error_errno(r, "Event run failed %m");
+ return log_error_errno(r, "Event run failed: %m");
}
cld_code = SERVICE(u)->exec_command[SERVICE_EXEC_START]->exec_status.code;
ASSERT_OK(unit_patch_contexts(u));
r = unit_start(u, NULL);
if (r < 0)
- return log_error_errno(r, "Unit start failed %m");
+ return log_error_errno(r, "Unit start failed: %m");
while (!IN_SET(SERVICE(u)->state, SERVICE_DEAD, SERVICE_FAILED)) {
r = sd_event_run(m->event, UINT64_MAX);
if (r < 0)
- return log_error_errno(r, "Event run failed %m");
+ return log_error_errno(r, "Event run failed: %m");
}
cld_code = SERVICE(u)->exec_command[SERVICE_EXEC_START]->exec_status.code;
ASSERT_OK(unit_patch_contexts(u));
r = unit_start(u, NULL);
if (r < 0)
- return log_error_errno(r, "Unit start failed %m");
+ return log_error_errno(r, "Unit start failed: %m");
while (!IN_SET(SERVICE(u)->state, SERVICE_DEAD, SERVICE_FAILED)) {
r = sd_event_run(m->event, UINT64_MAX);
if (r < 0)
- return log_error_errno(r, "Event run failed %m");
+ return log_error_errno(r, "Event run failed: %m");
}
cld_code = SERVICE(u)->exec_command[SERVICE_EXEC_START]->exec_status.code;