chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: use log_*_errno whenever %m is in the format string
[elogind.git]
/
src
/
core
/
timer.c
diff --git
a/src/core/timer.c
b/src/core/timer.c
index 762453880fae198d60cd59a1277eb19037e029af..fa134b13ad2c2d4750b2543dad2e62fc5a67a6ff 100644
(file)
--- a/
src/core/timer.c
+++ b/
src/core/timer.c
@@
-147,10
+147,8
@@
static int timer_setup_persistent(Timer *t) {
_cleanup_free_ char *h = NULL;
r = get_home_dir(&h);
_cleanup_free_ char *h = NULL;
r = get_home_dir(&h);
- if (r < 0) {
- log_error_errno(r, "Failed to determine home directory: %m");
- return r;
- }
+ if (r < 0)
+ return log_error_errno(r, "Failed to determine home directory: %m");
t->stamp_path = strjoin(h, "/.local/share/systemd/timers/stamp-", UNIT(t)->id, NULL);
}
t->stamp_path = strjoin(h, "/.local/share/systemd/timers/stamp-", UNIT(t)->id, NULL);
}
@@
-485,7
+483,7
@@
static void timer_enter_waiting(Timer *t, bool initial) {
return;
fail:
return;
fail:
- log_unit_warning
(UNIT(t)->id, "%s failed to enter waiting state: %s", UNIT(t)->id, strerror(-r)
);
+ log_unit_warning
_errno(UNIT(t)->id, r, "%s failed to enter waiting state: %m", UNIT(t)->id
);
timer_enter_dead(t, TIMER_FAILURE_RESOURCES);
}
timer_enter_dead(t, TIMER_FAILURE_RESOURCES);
}