From: Scott James Remnant Date: Mon, 23 Feb 2009 17:48:18 +0000 (+0000) Subject: Output watch handle in udevadm info. X-Git-Tag: 174~1156 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c08337da5c988e3e65d2ff63a1b554ca365deda7;p=systemd Output watch handle in udevadm info. --- 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]);