chiark / gitweb /
Put a log message in a more sensible place.
authorScott James Remnant <scott@ubuntu.com>
Mon, 23 Feb 2009 17:46:00 +0000 (17:46 +0000)
committerScott James Remnant <scott@ubuntu.com>
Mon, 23 Feb 2009 17:46:00 +0000 (17:46 +0000)
udev/udev-watch.c
udev/udevd.c

index 2d672e2..8d6cef6 100644 (file)
@@ -145,6 +145,7 @@ void udev_watch_begin(struct udev *udev, struct udev_device *dev)
        if (inotify_fd < 0 || major(udev_device_get_devnum(dev)) == 0)
                return;
 
        if (inotify_fd < 0 || major(udev_device_get_devnum(dev)) == 0)
                return;
 
+       info(udev, "adding watch on '%s'\n", udev_device_get_devnode(dev));
        wd = inotify_add_watch(inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
        if (wd < 0) {
                err(udev, "inotify_add_watch(%d, %s, %o) failed: %m\n",
        wd = inotify_add_watch(inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
        if (wd < 0) {
                err(udev, "inotify_add_watch(%d, %s, %o) failed: %m\n",
index 5fb6d5f..c764b33 100644 (file)
@@ -232,7 +232,6 @@ static void event_fork(struct udev_event *event)
                /* apply/restore inotify watch */
                if (err == 0 && event->inotify_watch &&
                    strcmp(udev_device_get_action(event->dev), "remove") != 0)
                /* apply/restore inotify watch */
                if (err == 0 && event->inotify_watch &&
                    strcmp(udev_device_get_action(event->dev), "remove") != 0)
-                       info(event->udev, "device will be watched for changes\n");
                        udev_watch_begin(event->udev, event->dev);
 
                info(event->udev, "seq %llu exit with %i\n", udev_device_get_seqnum(event->dev), err);
                        udev_watch_begin(event->udev, event->dev);
 
                info(event->udev, "seq %llu exit with %i\n", udev_device_get_seqnum(event->dev), err);