1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-12 13:18:14 +03:00

udev-node: add one more debug log when failed to create symlink

This commit is contained in:
Yu Watanabe 2018-10-30 13:29:44 +09:00
parent a126a38a9f
commit 6bee206591

View 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);