Hi, This patch prints the vendor + product ids of the scanner after it has been successfully detected.
Also the annoying error message about "Scanner device is already open" was downgraded to a dbg. Scanning for devices while one scanner device was open produced several 100 error messages in syslog. Bye, Henning --- linux-2.5.59-maintainer2/drivers/usb/image/scanner.c 2003-01-18 00:13:43.000000000 +0100 +++ linux-2.5.59-syslog//drivers/usb/image/scanner.c 2003-01-18 00:33:54.000000000 ++0100 @@ -339,6 +339,9 @@ * - Removed PV8630 ioctls. Use the standard ioctls instead. * - Made endpoint detection more generic. Basically, only one bulk-in * endpoint is required, everything else is optional. + * - New maintainer: Henning Meier-Geinitz. + * - Print ids and device number when a device was detected. + * - Don't print errors when the device is busy. * * TODO * - Performance @@ -470,7 +473,7 @@ } if (scn->isopen) { - err("open_scanner(%d): Scanner device is already open", scn_minor); + dbg("open_scanner(%d): Scanner device is already open", scn_minor); err = -EBUSY; goto out_error; } @@ -1056,6 +1059,9 @@ if (scn->devfs == NULL) dbg("scanner%d: device node registration failed", scn_minor); + info ("USB scanner device (0x%04x/0x%04x) now attached to %s", + dev->descriptor.idVendor, dev->descriptor.idProduct, name); + up(&scn_mutex); usb_set_intfdata(intf, scn); ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel