]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: add missing errno arguments to log_*_errno()
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 1 Oct 2015 09:04:08 +0000 (11:04 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 1 Oct 2015 09:04:08 +0000 (11:04 +0200)
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"

src/core/smack-setup.c
src/libsystemd/sd-device/sd-device.c

index 6618aa501d60dc7a0a066e45f589485885d8a0fc..761582c7a2d847e3e637527a34ec118078b76cbf 100644 (file)
@@ -222,7 +222,7 @@ int mac_smack_setup(bool *loaded_policy) {
 #ifdef SMACK_RUN_LABEL
         r = write_string_file("/proc/self/attr/current", SMACK_RUN_LABEL, 0);
         if (r)
-                log_warning_errno("Failed to set SMACK label \"%s\" on self: %m", SMACK_RUN_LABEL);
+                log_warning_errno(r, "Failed to set SMACK label \"%s\" on self: %m", SMACK_RUN_LABEL);
 #endif
 
         r = write_cipso2_rules("/etc/smack/cipso.d/");
index 8ffe994d80862cfa5dd39c13ade050b86be1dd1e..ca231858c0391ff1b2f5d3d29eff821b294aadf0 100644 (file)
@@ -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;