chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus-proxy: we don't pointlessly abbreviate function names
[elogind.git]
/
src
/
remount-fs
/
remount-fs.c
diff --git
a/src/remount-fs/remount-fs.c
b/src/remount-fs/remount-fs.c
index 296940418545787270188998abd01104e0c94e58..57b47021e4431526ec32c4b34c806d330f0d722a 100644
(file)
--- a/
src/remount-fs/remount-fs.c
+++ b/
src/remount-fs/remount-fs.c
@@
-60,7
+60,7
@@
int main(int argc, char *argv[]) {
if (errno == ENOENT)
return EXIT_SUCCESS;
if (errno == ENOENT)
return EXIT_SUCCESS;
- log_error
(
"Failed to open /etc/fstab: %m");
+ log_error
_errno(errno,
"Failed to open /etc/fstab: %m");
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
@@
-87,7
+87,7
@@
int main(int argc, char *argv[]) {
pid = fork();
if (pid < 0) {
pid = fork();
if (pid < 0) {
- log_error
(
"Failed to fork: %m");
+ log_error
_errno(errno,
"Failed to fork: %m");
ret = EXIT_FAILURE;
continue;
}
ret = EXIT_FAILURE;
continue;
}
@@
-104,7
+104,7
@@
int main(int argc, char *argv[]) {
execv("/bin/mount", (char **) arguments);
execv("/bin/mount", (char **) arguments);
- log_error
(
"Failed to execute /bin/mount: %m");
+ log_error
_errno(errno,
"Failed to execute /bin/mount: %m");
_exit(EXIT_FAILURE);
}
_exit(EXIT_FAILURE);
}
@@
-135,7
+135,7
@@
int main(int argc, char *argv[]) {
if (errno == EINTR)
continue;
if (errno == EINTR)
continue;
- log_error
(
"waitid() failed: %m");
+ log_error
_errno(errno,
"waitid() failed: %m");
ret = EXIT_FAILURE;
break;
}
ret = EXIT_FAILURE;
break;
}