diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 13:17:02 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 13:29:21 +0100 |
commit | 31938a8560a664c32a9d72f1fc2d4347b232e6e9 (patch) | |
tree | 9f967dd20a3c372b9ccd5c3ea03c15c2708a22b9 /src/core/timer.c | |
parent | b2dc4e44c540a30c5ea12a9a570425ceb310c320 (diff) |
core: convert log_unit_*() to log_unit_*_errno()
Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_unit_(debug|info|notice|warning|error|emergency)\(([^"]+), "(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_unit_\1_errno(\2, \5, "\3%m"\4);/'
Diffstat (limited to 'src/core/timer.c')
-rw-r--r-- | src/core/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/timer.c b/src/core/timer.c index 762453880f..fc474f78ea 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -485,7 +485,7 @@ static void timer_enter_waiting(Timer *t, bool initial) { 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); } |