- printf("P: %s\n", udev->devpath);
- printf("N: %s\n", udev->name);
- list_for_each_entry(name_loop, &udev->symlink_list, node)
- printf("S: %s\n", name_loop->name);
- list_for_each_entry(name_loop, &udev->env_list, node)
- printf("E: %s\n", name_loop->name);
-}
-
-static int print_device_chain(const char *path)
-{
- struct sysfs_class_device *class_dev;
- struct sysfs_class_device *class_dev_parent;
- struct sysfs_attribute *attr;
- struct sysfs_device *sysfs_dev;
- struct dlist *attr_list;
- int retval = 0;
-
- /* get the class dev */
- class_dev = sysfs_open_class_device_path(path);
- if (class_dev == NULL) {
- fprintf(stderr, "couldn't get the class device\n");
- return -1;
- }
-
- printf("\nudevinfo starts with the device the node belongs to and then walks up the\n"