From c08337da5c988e3e65d2ff63a1b554ca365deda7 Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Mon, 23 Feb 2009 17:48:18 +0000 Subject: [PATCH] Output watch handle in udevadm info. --- udev/udevadm-info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c index 6fe1f863..094c6ce2 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]); -- 2.39.5