]> err.no Git - systemd/commitdiff
libudev: add sysnum to test program
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 17 Oct 2008 11:54:14 +0000 (13:54 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 17 Oct 2008 11:54:14 +0000 (13:54 +0200)
udev/lib/test-libudev.c

index 65d84159cea5cefb68bd1d5a27508499205f265c..ded65cca910c448b5b7f601b56cb44be530772ff 100644 (file)
@@ -53,6 +53,13 @@ static void print_device(struct udev_device *device)
        str = udev_device_get_syspath(device);
        printf("syspath:   '%s'\n", str);
 
+       str = udev_device_get_sysname(device);
+       printf("sysname:   '%s'\n", str);
+
+       str = udev_device_get_sysnum(device);
+       if (str != NULL)
+               printf("sysnum:    '%s'\n", str);
+
        str = udev_device_get_devpath(device);
        printf("devpath:   '%s'\n", str);