X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fudev%2Fudev-ctrl.c;h=d6cc9b493af2fda18251ff3af7829703d281689a;hp=98fd3a9acfcfdae6c8960409c6d48483a710b25c;hb=0a1beeb64207eaa88ab9236787b1cbc2f704ae14;hpb=b4d23205f238e06aaa31264628e20669e714acad diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c index 98fd3a9ac..d6cc9b493 100644 --- 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) { - 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) {