chiark / gitweb /
libudev: add udev_device_get_syspath()
[elogind.git] / udev / lib / test-libudev.c
index 3c38600192150e8e3d1b448596afe7e5ff488496..d0095f15fc5828cc9cab1a1971b671be93eb678f 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_syspath(device);
+       printf("syspath:   '%s'\n", str);
        str = udev_device_get_devname(device);
        printf("devname:   '%s'\n", str);
        count = udev_device_get_devlinks(device, print_devlinks_cb, NULL);