diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 11:30:06 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-11-28 11:30:06 -0500 |
commit | b06aadd220dd71cd97d0176612e691dcf8ac13a2 (patch) | |
tree | 71b3fe0f6504573ed1ea308dd3b973f0883e7dd1 /src/udev/udev-ctrl.c | |
parent | 146b012e50e133f46b920ec1f8ab1ac719011226 (diff) |
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udev-ctrl.c')
-rw-r--r-- | src/udev/udev-ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c index 7f0c957630..8581732821 100644 --- a/src/udev/udev-ctrl.c +++ b/src/udev/udev-ctrl.c @@ -216,7 +216,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_errno(-r, "unable to receive credentials of ctrl connection: %m"); + log_error_errno(r, "unable to receive credentials of ctrl connection: %m"); goto err; } if (ucred.uid > 0) { |