diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-04-12 17:13:37 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-04-12 17:13:37 +0200 |
commit | 3ba7e651ad36e4f37d9bfffadb638bc2ef784217 (patch) | |
tree | 7376c9922ecd49f39e68487534e14b7e63afffa9 /udev | |
parent | 5c4c389bba6cf986a8dd743b43017c2f60604cca (diff) |
log info only if we actually delete the node
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udev-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c index c3a8281b44..26939e75db 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -646,9 +646,9 @@ int udev_event_execute_rules(struct udev_event *event, struct udev_rules *rules) struct stat stats; char filename[UTIL_PATH_SIZE]; - info(event->udev, "remove kernel created node '%s'\n", udev_device_get_knodename(dev)); util_strscpyl(filename, sizeof(filename), udev_get_dev_path(event->udev), "/", udev_device_get_knodename(dev), NULL); if (stat(filename, &stats) == 0 && stats.st_rdev == udev_device_get_devnum(dev)) { + info(event->udev, "remove kernel created node '%s'\n", udev_device_get_knodename(dev)); util_unlink_secure(event->udev, filename); util_delete_path(event->udev, filename); } |