]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-node: add one more debug log when failed to create symlink 10602/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Oct 2018 04:29:44 +0000 (13:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Nov 2018 06:45:22 +0000 (15:45 +0900)
src/udev/udev-node.c

index f02f71367d9c9009cde63be6157e3f8e7387b858..94bebd69c74630fd1550f51ad0890854610cfe98 100644 (file)
@@ -73,6 +73,8 @@ static int node_symlink(sd_device *dev, const char *node, const char *slink) {
                 } while (r == -ENOENT);
                 if (r == 0)
                         return 0;
+                if (r < 0)
+                        log_device_debug_errno(dev, r, "Failed to create symlink '%s' to '%s', trying to replace '%s': %m", slink, target, slink);
         }
 
         log_device_debug(dev, "Atomically replace '%s'", slink);