chiark / gitweb /
move some info() to dbg()
[elogind.git] / udev / lib / test-libudev.c
index 65d84159cea5cefb68bd1d5a27508499205f265c..4c3bc16aed8c461a249f2f31955c85ec5511548f 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);
 
@@ -90,7 +97,7 @@ static void print_device(struct udev_device *device)
        if (count > 0)
                printf("found %i properties\n", count);
 
-       str = udev_device_get_attr_value(device, "dev");
+       str = udev_device_get_sysattr_value(device, "dev");
        if (str != NULL)
                printf("attr{dev}: '%s'\n", str);