udev: tiny fix to debug message

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-06-29 14:56:45 +02:00
parent 7504610ba0
commit ab3a7372d2

View file

@ -297,7 +297,7 @@ static int node_permissions_apply(sd_device *dev, bool apply,
mode |= S_IFCHR;
if (lstat(devnode, &stats) < 0)
return log_device_debug_errno(dev, errno, "cannot stat() node '%s' (%m)", devnode);
return log_device_debug_errno(dev, errno, "cannot stat() node %s: %m", devnode);
if (((stats.st_mode & S_IFMT) != (mode & S_IFMT)) || (stats.st_rdev != devnum))
return log_device_debug_errno(dev, SYNTHETIC_ERRNO(EEXIST), "Found node '%s' with non-matching devnum %s, skip handling",