X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev%2Fudevadm-info.c;h=094c6ce2a8da64e637758d8ecc0c26d4d57e56e9;hb=03733b04c3919920520c8b2ab1e18a44b2691cb5;hp=745b4fdb7b9aad3f94194c7df4485896ec4bcae6;hpb=50025605e0f9942da513c9dcfde289495afefd17;p=elogind.git diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c index 745b4fdb7..094c6ce2a 100644 --- a/udev/udevadm-info.c +++ b/udev/udevadm-info.c @@ -87,7 +87,7 @@ static int print_device_chain(struct udev_device *device) const char *str; printf("\n" - "Udevinfo starts with the device specified by the devpath and then\n" + "Udevadm info starts with the device specified by the devpath and then\n" "walks up the chain of parent devices. It prints for every device\n" "found, all possible attributes in the udev rules key format.\n" "A rule to match, can be composed by the attributes of the device\n" @@ -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]);