summaryrefslogtreecommitdiff
path: root/src/libsystemd
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2015-10-01 11:04:08 +0200
committerMichal Schmidt <mschmidt@redhat.com>2015-10-01 11:04:08 +0200
commit23446f01480e1d6f72a03d71f9c67cbf34ddaf3b (patch)
tree3a40018477d40ea4c44fe8646db936c41703fb0f /src/libsystemd
parent2ce8d6080d4135ae8926fc783766c3dfbeb7a6b0 (diff)
tree-wide: add missing errno arguments to log_*_errno()
A few of the recent conversions to log_*_errno() were missing the errno value arguments. Fixes: e53fc357a9b "tree-wide: remove a number of invocations of strerror() and replace by %m"
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/sd-device/sd-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c
index 8ffe994d80..ca231858c0 100644
--- a/src/libsystemd/sd-device/sd-device.c
+++ b/src/libsystemd/sd-device/sd-device.c
@@ -172,7 +172,7 @@ int device_set_syspath(sd_device *device, const char *_syspath, bool verify) {
return log_debug_errno(errno, "sd-device: could not canonicalize '%s': %m", _syspath);
}
} else if (r < 0) {
- log_debug_errno("sd-device: could not get target of '%s': %m", _syspath);
+ log_debug_errno(r, "sd-device: could not get target of '%s': %m", _syspath);
return r;
}
@@ -568,7 +568,7 @@ int device_read_uevent_file(sd_device *device) {
if (major) {
r = device_set_devnum(device, major, minor);
if (r < 0)
- log_debug_errno("sd-device: could not set 'MAJOR=%s' or 'MINOR=%s' from '%s': %m", major, minor, path);
+ log_debug_errno(r, "sd-device: could not set 'MAJOR=%s' or 'MINOR=%s' from '%s': %m", major, minor, path);
}
return 0;