- dbg("class_dev->name='%s'", class_dev->name);
-
- /* Figure out where the "device"-symlink is at. For char devices this will
- * always be in the class_dev->path. On block devices, only the main block
- * device will have the device symlink in it's path. All partition devices
- * need to look at the symlink in its parent directory.
- */
- class_dev_parent = sysfs_get_classdev_parent(class_dev);
- if (class_dev_parent != NULL) {
- dbg("given class device has a parent, use this instead");
- sysfs_device = sysfs_get_classdev_device(class_dev_parent);
- } else {
- sysfs_device = sysfs_get_classdev_device(class_dev);
- }
-
- if (sysfs_device) {
- dbg("found devices device: path='%s', bus_id='%s', bus='%s'",
- sysfs_device->path, sysfs_device->bus_id, sysfs_device->bus);
- strlcpy(udev->bus_id, sysfs_device->bus_id, sizeof(udev->bus_id));
- }
-
- dbg("udev->kernel_name='%s'", udev->kernel_name);
+ dbg("udev->dev->devpath='%s'", udev->dev->devpath);
+ dbg("udev->dev->kernel_name='%s'", udev->dev->kernel_name);