ChangeSet 1.986, 2003/02/04 11:25:17+11:00, [EMAIL PROTECTED]
[PATCH] USB scanner.c: Adjust syslog output
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.
diff -Nru a/drivers/usb/image/scanner.c b/drivers/usb/image/scanner.c
--- a/drivers/usb/image/scanner.c Tue Feb 4 15:16:34 2003
+++ b/drivers/usb/image/scanner.c Tue Feb 4 15:16:34 2003
@@ -342,6 +342,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
@@ -473,7 +476,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;
}
@@ -1058,6 +1061,9 @@
S_IWGRP | S_IROTH | S_IWOTH, &usb_scanner_fops,
NULL);
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);
-------------------------------------------------------
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