summaryrefslogtreecommitdiff
path: root/udev/udevadm-info.c
diff options
context:
space:
mode:
authorScott James Remnant <scott@ubuntu.com>2009-02-23 17:48:18 +0000
committerScott James Remnant <scott@ubuntu.com>2009-02-23 17:48:18 +0000
commitc08337da5c988e3e65d2ff63a1b554ca365deda7 (patch)
tree3e8880fb47d93102f8c7b11f29410edee984bb90 /udev/udevadm-info.c
parent9ce462721a02e38c15e4cdeff7dfc98eeb56224a (diff)
Output watch handle in udevadm info.
Diffstat (limited to 'udev/udevadm-info.c')
-rw-r--r--udev/udevadm-info.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c
index 6fe1f86313..094c6ce2a8 100644
--- a/udev/udevadm-info.c
+++ b/udev/udevadm-info.c
@@ -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]);