chiark / gitweb /
libudev: test - add udev_device_get_property_value()
[elogind.git] / udev / lib / test-libudev.c
index fd12bd9..592a147 100644 (file)
@@ -101,6 +101,10 @@ static void print_device(struct udev_device *device)
        if (count > 0)
                printf("found %i properties\n", count);
 
+       str = udev_device_get_property_value(device, "MAJOR");
+       if (str != NULL)
+               printf("MAJOR: '%s'\n", str);
+
        str = udev_device_get_sysattr_value(device, "dev");
        if (str != NULL)
                printf("attr{dev}: '%s'\n", str);