chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35d50f5
)
path: use %m instead of strerror(errno)
author
Michal Schmidt
<mschmidt@redhat.com>
Sat, 3 Dec 2011 00:36:05 +0000
(
01:36
+0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Sat, 3 Dec 2011 01:08:52 +0000
(
02:08
+0100)
and strerror(-errno) was just wrong.
src/path.c
patch
|
blob
|
history
diff --git
a/src/path.c
b/src/path.c
index f15c9214efb35c73fd5cdea904dc802d5fc783cd..142fd2d8ac6bb9e73afe27d45b0a5be17db5cb2d 100644
(file)
--- 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;
}