chiark / gitweb /
udevadm: test - remove --force option
[elogind.git] / udev / lib / test-libudev.c
index 512062652075a818c83c45e3bc1c9de456b077d8..592a147e0124461f4871eb23702bd6853e0760e3 100644 (file)
@@ -67,6 +67,10 @@ static void print_device(struct udev_device *device)
        if (str != NULL)
                printf("subsystem: '%s'\n", str);
 
+       str = udev_device_get_devtype(device);
+       if (str != NULL)
+               printf("devtype:   '%s'\n", str);
+
        str = udev_device_get_driver(device);
        if (str != NULL)
                printf("driver:    '%s'\n", str);
@@ -97,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);