diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2011-12-03 01:36:05 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2011-12-03 02:08:52 +0100 |
commit | 768147d13d0877a4c3e5f6f986c3064de62ff4f1 (patch) | |
tree | 249128fbe2b2d523ece3de4d904fa5927560c6bb /src/path.c | |
parent | 35d50f55f346c71fd5e957d35ebcae1c50b1f9ce (diff) |
path: use %m instead of strerror(errno)
and strerror(-errno) was just wrong.
Diffstat (limited to 'src/path.c')
-rw-r--r-- | src/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c index f15c9214ef..142fd2d8ac 100644 --- a/src/path.c +++ b/src/path.c @@ -556,7 +556,7 @@ static void path_fd_event(Unit *u, int fd, uint32_t events, Watch *w) { } if (ioctl(fd, FIONREAD, &l) < 0) { - log_error("FIONREAD failed: %s", strerror(errno)); + log_error("FIONREAD failed: %m"); goto fail; } @@ -568,7 +568,7 @@ static void path_fd_event(Unit *u, int fd, uint32_t events, Watch *w) { } if ((k = read(fd, buf, l)) < 0) { - log_error("Failed to read inotify event: %s", strerror(-errno)); + log_error("Failed to read inotify event: %m"); goto fail; } |