]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fsck: use log_device_*()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 22 Oct 2018 03:39:51 +0000 (12:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Oct 2018 13:44:07 +0000 (22:44 +0900)
src/fsck/fsck.c

index 9030708db095db11376ee32b443a5d4ceb80f5ad..65928ed2e35b55e931ce9b12066058718ac48e1f 100644 (file)
@@ -347,7 +347,7 @@ int main(int argc, char *argv[]) {
 
                 r = sd_device_get_devname(dev, &device);
                 if (r < 0) {
-                        log_error_errno(r, "Failed to detect device node of root directory: %m");
+                        log_device_error_errno(dev, r, "Failed to detect device node of root directory: %m");
                         goto finish;
                 }
 
@@ -357,9 +357,9 @@ int main(int argc, char *argv[]) {
         if (sd_device_get_property_value(dev, "ID_FS_TYPE", &type) >= 0) {
                 r = fsck_exists(type);
                 if (r < 0)
-                        log_warning_errno(r, "Couldn't detect if fsck.%s may be used for %s, proceeding: %m", type, device);
+                        log_device_warning_errno(dev, r, "Couldn't detect if fsck.%s may be used, proceeding: %m", type);
                 else if (r == 0) {
-                        log_info("fsck.%s doesn't exist, not checking file system on %s.", type, device);
+                        log_device_info(dev, "fsck.%s doesn't exist, not checking file system.", type);
                         goto finish;
                 }
         }