chiark / gitweb /
libudev: udev_device - read "driver" value
[elogind.git] / udev / lib / test-libudev.c
index 835536af84645d75b3d312d85f6cc7517d10793b..4fdef68881211f609259b16e1b2dec51fc17c75e 100644 (file)
@@ -58,6 +58,8 @@ static void print_device(struct udev_device *device)
        printf("devpath:   '%s'\n", str);
        str = udev_device_get_subsystem(device);
        printf("subsystem: '%s'\n", str);
+       str = udev_device_get_driver(device);
+       printf("driver:    '%s'\n", str);
        str = udev_device_get_syspath(device);
        printf("syspath:   '%s'\n", str);
        str = udev_device_get_devname(device);