char **state;
int r = 0;
+ assert(f);
+ assert(*f);
+
STRV_FOREACH(state, states) {
int k;
r = execute(sleep_config->hibernate_modes, sleep_config->hibernate_states);
if (r < 0) {
- log_notice_errno(r, "Couldn't hibernate, will try to suspend again.");
+ log_notice_errno(r, "Couldn't hibernate, will try to suspend again: %m");
r = execute(sleep_config->suspend_modes, sleep_config->suspend_states);
if (r < 0)
- return log_notice_errno(r, "Could neither hibernate nor suspend again, giving up.");
+ return log_error_errno(r, "Could neither hibernate nor suspend, giving up: %m");
}
return 0;