udev: use SYNTHETIC_ERRNO() macro in log_device_*_errno()

This commit is contained in:
Yu Watanabe
2019-01-13 17:50:47 +09:00
parent 7ae3561a5a
commit a119328608
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ static int node_permissions_apply(sd_device *dev, bool apply,
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, EEXIST, "Found node '%s' with non-matching devnum %s, skip handling",
return log_device_debug_errno(dev, SYNTHETIC_ERRNO(EEXIST), "Found node '%s' with non-matching devnum %s, skip handling",
devnode, id_filename);
if (apply) {