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: auto-convert the simple cases to log_*_errno()
[elogind.git]
/
src
/
udev
/
udev-ctrl.c
diff --git
a/src/udev/udev-ctrl.c
b/src/udev/udev-ctrl.c
index 98fd3a9acfcfdae6c8960409c6d48483a710b25c..d6cc9b493af2fda18251ff3af7829703d281689a 100644
(file)
--- a/
src/udev/udev-ctrl.c
+++ b/
src/udev/udev-ctrl.c
@@
-194,7
+194,7
@@
struct udev_ctrl_connection *udev_ctrl_get_connection(struct udev_ctrl *uctrl) {
/* check peer credential of connection */
r = getpeercred(conn->sock, &ucred);
if (r < 0) {
/* check peer credential of connection */
r = getpeercred(conn->sock, &ucred);
if (r < 0) {
- log_error
("unable to receive credentials of ctrl connection: %s", strerror(-r)
);
+ log_error
_errno(-r, "unable to receive credentials of ctrl connection: %m"
);
goto err;
}
if (ucred.uid > 0) {
goto err;
}
if (ucred.uid > 0) {