Hi,

With this patch, information about user-supplied ids is printed only
once at startup instead of everytime any USB device is plugged in.

The patch is on top of the new ids patch.

Bye,
  Henning
  
--- linux-2.5.54-newids1/drivers/usb/image/scanner.c    2003-01-07 22:25:11.000000000 
+0100
+++ linux-2.5.54-cleanup/drivers/usb/image/scanner.c    2003-01-07 23:04:56.000000000 
++0100
@@ -333,6 +333,8 @@
  *
  * 0.4.10  01/07/2003
  *    - Added vendor/product ids for Visioneer scanners.
+ *    - Print information about user-supplied ids only once at startup instead
+ *      of everytime any USB device is plugged in.
  *
  * TODO
  *    - Remove the 2/3 endpoint limitation
@@ -874,10 +876,6 @@
        char have_bulk_in, have_bulk_out, have_intr;
        char name[10];
 
-       if (vendor != -1 && product != -1) {
-               info("probe_scanner: User specified USB scanner -- Vendor:Product - 
%x:%x", vendor, product);
-       }
-
        dbg("probe_scanner: USB dev address:%p", dev);
 
 /*
@@ -1189,6 +1187,8 @@
                 return -1;
 
        info(DRIVER_VERSION ":" DRIVER_DESC);
+       if (vendor != -1 && product != -1)
+               info("probe_scanner: User specified USB scanner -- Vendor:Product - 
+%x:%x", vendor, product);
        return 0;
 }
 



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to