]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: fix format strings after conversion to log_*_errno()
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 1 Oct 2015 09:18:05 +0000 (11:18 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 1 Oct 2015 09:18:05 +0000 (11:18 +0200)
Use %m where previously %s was used together with strerrno().

Fixes: e53fc357a9b "tree-wide: remove a number of invocations of
       strerror() and replace by %m"

src/libsystemd/sd-device/sd-device.c

index ca231858c0391ff1b2f5d3d29eff821b294aadf0..c528a157c14b627352850862f65be3901ffe227c 100644 (file)
@@ -554,7 +554,7 @@ int device_read_uevent_file(sd_device *device) {
 
                                 r = handle_uevent_line(device, key, value, &major, &minor);
                                 if (r < 0)
-                                        log_debug_errno(r, "sd-device: failed to handle uevent entry '%s=%s': %s", key, value);
+                                        log_debug_errno(r, "sd-device: failed to handle uevent entry '%s=%s': %m", key, value);
 
                                 state = PRE_KEY;
                         }
@@ -1315,7 +1315,7 @@ int device_read_db_aux(sd_device *device, bool force) {
                                 db[i] = '\0';
                                 r = handle_db_line(device, key, value);
                                 if (r < 0)
-                                        log_debug_errno(r, "sd-device: failed to handle db entry '%c:%s': %s", key, value);
+                                        log_debug_errno(r, "sd-device: failed to handle db entry '%c:%s': %m", key, value);
 
                                 state = PRE_KEY;
                         }