chiark / gitweb /
[PATCH] udev - simple debug tweak
[elogind.git] / namedev.c
index 41fefc4bc8644ab0dd0c300b067941f4d85e04a8..fdc6252bf66fa46583ca97b4b9fab0389b12bb12 100644 (file)
--- a/namedev.c
+++ b/namedev.c
@@ -252,6 +252,7 @@ static struct bus_file {
 } bus_files[] = {
        { .bus = "scsi",        .file = "vendor" },
        { .bus = "usb",         .file = "idVendor" },
+       { .bus = "usb-serial",  .file = "detach_state" },
        { .bus = "ide",         .file = "detach_state" },
        { .bus = "pci",         .file = "vendor" },
        {}
@@ -448,7 +449,7 @@ static int match_id(struct config_device *dev, struct sysfs_class_device *class_
        int found;
        char *temp = NULL;
 
-       /* we have to have a sysfs device for NUMBER to work */
+       /* we have to have a sysfs device for ID to work */
        if (!sysfs_device)
                return -ENODEV;
 
@@ -479,7 +480,7 @@ static int match_place(struct config_device *dev, struct sysfs_class_device *cla
        int found;
        char *temp = NULL;
 
-       /* we have to have a sysfs device for NUMBER to work */
+       /* we have to have a sysfs device for PLACE to work */
        if (!sysfs_device)
                return -ENODEV;
 
@@ -715,7 +716,7 @@ int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *ud
                }
 
                /* Yup, this rule belongs to us! */
-               dbg("found matching rule, '%s' becomes '%s'", dev->kernel, udev->name);
+               dbg("found matching rule, '%s' becomes '%s'", dev->kernel, dev->name);
                strfieldcpy(udev->name, dev->name);
                strfieldcpy(udev->symlink, dev->symlink);
                goto found;