rules: Add driver name to the USB properties

Makes it easier to see which driver is being used.
This commit is contained in:
Bastien Nocera 2015-03-15 23:13:08 +01:00
parent bb66780cb5
commit f1fdd71613

View file

@ -75,6 +75,7 @@ static void print_driver (struct fp_driver *driver)
printf ("# %s\n", driver->full_name);
printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\"\n", driver->id_table[i].vendor, driver->id_table[i].product);
printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{LIBFPRINT_DRIVER}=\"%s\"\n", driver->id_table[i].vendor, driver->id_table[i].product, driver->full_name);
num_printed++;
}