summaryrefslogtreecommitdiffstats
path: root/src/udev/udev-watch.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-09-08 19:10:27 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-09-08 19:34:38 +0200
commitab54f12b783eea891d6414fbc14cd6fe7cbe4c80 (patch)
treeb75d0dc8e6fa95f7d8bfa39c31e47c8f30c10f55 /src/udev/udev-watch.c
parentudev: explicitly specify return value (diff)
downloadsystemd-ab54f12b783eea891d6414fbc14cd6fe7cbe4c80.tar.xz
systemd-ab54f12b783eea891d6414fbc14cd6fe7cbe4c80.zip
sd-device: make log_device_error() or friends return void
Diffstat (limited to 'src/udev/udev-watch.c')
-rw-r--r--src/udev/udev-watch.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/udev/udev-watch.c b/src/udev/udev-watch.c
index 96a25ddf7c..d87a43537c 100644
--- a/src/udev/udev-watch.c
+++ b/src/udev/udev-watch.c
@@ -97,10 +97,8 @@ int udev_watch_begin(sd_device *dev) {
log_device_debug(dev, "Adding watch on '%s'", devnode);
wd = inotify_add_watch(inotify_fd, devnode, IN_CLOSE_WRITE);
if (wd < 0)
- return log_device_full(dev,
- errno == ENOENT ? LOG_DEBUG : LOG_ERR,
- errno,
- "Failed to add device '%s' to watch: %m", devnode);
+ return log_device_full_errno(dev, errno == ENOENT ? LOG_DEBUG : LOG_ERR, errno,
+ "Failed to add device '%s' to watch: %m", devnode);
device_set_watch_handle(dev, wd);