From 6bee20659133b32260f9a2206ba4d7e21e59a351 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 30 Oct 2018 13:29:44 +0900 Subject: [PATCH] udev-node: add one more debug log when failed to create symlink --- src/udev/udev-node.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c index f02f71367d9..94bebd69c74 100644 --- a/src/udev/udev-node.c +++ b/src/udev/udev-node.c @@ -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);