sleep: reword some debug messages

I think the sentences sound more natural this way.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-08 13:19:53 +02:00
parent 44f0dd628c
commit 1c5950bd61
1 changed files with 4 additions and 5 deletions

View File

@ -160,14 +160,13 @@ static int lock_all_homes(void) {
r = sd_bus_call(bus, m, DEFAULT_TIMEOUT_USEC, &error, NULL);
if (r < 0) {
if (bus_error_is_unknown_service(&error))
return log_debug("systemd-homed is not running, skipping locking of home directories.");
if (!bus_error_is_unknown_service(&error))
return log_error_errno(r, "Failed to lock home directories: %s", bus_error_message(&error, r));
return log_error_errno(r, "Failed to lock home directories: %s", bus_error_message(&error, r));
return log_debug("systemd-homed is not running, locking of home directories skipped.");
}
log_debug("Successfully requested for all home directories to be locked.");
return 0;
return log_debug("Successfully requested locking of all home directories.");
}
static int execute(char **modes, char **states) {