]> err.no Git - systemd/commitdiff
Output watch handle in udevadm info.
authorScott James Remnant <scott@ubuntu.com>
Mon, 23 Feb 2009 17:48:18 +0000 (17:48 +0000)
committerScott James Remnant <scott@ubuntu.com>
Mon, 23 Feb 2009 17:48:18 +0000 (17:48 +0000)
udev/udevadm-info.c

index 6fe1f8631328932f6aa64ffb16bd91e1d862ef40..094c6ce2a8da64e637758d8ecc0c26d4d57e56e9 100644 (file)
@@ -153,6 +153,10 @@ static void print_record(struct udev_device *device)
        if (i != 0)
                printf("R:%u\n", i);
 
+       i = udev_device_get_watch_handle(device);
+       if (i >= 0)
+               printf("W:%u\n", i);
+
        udev_list_entry_foreach(list_entry, udev_device_get_devlinks_list_entry(device)) {
                len = strlen(udev_get_dev_path(udev_device_get_udev(device)));
                printf("S: %s\n", &udev_list_entry_get_name(list_entry)[len+1]);