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-builtin-keyboard.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-builtin-keyboard.c')
-rw-r--r-- | src/udev/udev-builtin-keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c index 6628ac873f..2deb8b9fbb 100644 --- a/src/udev/udev-builtin-keyboard.c +++ b/src/udev/udev-builtin-keyboard.c @@ -62,7 +62,7 @@ static int install_force_release(struct udev_device *dev, const unsigned int *re log_debug("keyboard: updating force-release list with '%s'", codes); ret = udev_device_set_sysattr_value(atkbd, "force_release", codes); if (ret < 0) - log_error_errno(-ret, "Error writing force-release attribute: %m"); + log_error_errno(ret, "Error writing force-release attribute: %m"); return ret; } |