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.4.21-pre3.maintainer2/drivers/usb/scanner.c 2003-01-17 13:48:16.000000000
+0100
+++ linux-2.4.21-pre3.syslog/drivers/usb/scanner.c 2003-01-17 22:54:50.000000000
++0100
@@ -343,6 +343,8 @@
* - Move the scanner ioctls to usb_scanner_ioctl.h to allow access by archs
* that need it (by Greg KH).
* - 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
@@ -456,7 +458,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;
}
@@ -1047,6 +1049,8 @@
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);
p_scn_table[scn_minor] = scn;
up(&scn_mutex);
-------------------------------------------------------
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