On Mon, Sep 01, David Brownell wrote:

> Olaf Hering wrote:
> >Good morning,
> >
> >who is mainaining lsusb these days?
> 
> I recently sent a patch to Thomas Sailer <[EMAIL PROTECTED]>, which
> he reports is now merged into CVS.  Fixes problems like:
> 
>   - no parsing for common CDC class descriptors,
>   - way-too-short control timeouts,
>   - unforgiving (and sometimes wrong) string reads,
>   - missing endpoint descriptor fields (one added in usb 2.0).
> 
> So it's more robust, and syslog doesn't accumulate anywhere
> near as many messages.  (I didn't intentionally connect a
> set of devices, all of which gave "lsusb" indigestion, to
> test with -- but that's what I ended up with!)

Where is this CVS? I sent him a mail once, but it bounced, probably an
outdated mail address.

> >There are several bugreports like this:
> >
> >usbdevfs: process 17978 (lsusb) did not claim interface 0 before use
> >
> >What does it mean?
> >Is the application broken?
> >If so, how can it be fixed?
> 
> It's a warning that could be fixed, nothing especially broken,
> but someone would have to patch it.

You mean something like that?

diff -p -purN linux-2.4.22/drivers/usb/devio.c linux-2.4.22.usb/drivers/usb/devio.c
--- linux-2.4.22/drivers/usb/devio.c    2003-06-13 16:51:36.000000000 +0200
+++ linux-2.4.22.usb/drivers/usb/devio.c        2003-09-02 10:31:36.000000000 +0200
@@ -384,7 +384,7 @@ static int checkintf(struct dev_state *p
        if (test_bit(intf, &ps->ifclaimed))
                return 0;
        /* if not yet claimed, claim it for the driver */
-       printk(KERN_WARNING "usbdevfs: process %d (%s) did not claim interface %u 
before use\n",
+       printk(KERN_DEBUG "usbdevfs: process %d (%s) did not claim interface %u before 
use\n",
               current->pid, current->comm, intf);
        return claimintf(ps, intf);
 }

or that?

diff -p -purN linux-2.4.22/drivers/usb/devio.c linux-2.4.22.usb/drivers/usb/devio.c
--- linux-2.4.22/drivers/usb/devio.c    2003-06-13 16:51:36.000000000 +0200
+++ linux-2.4.22.usb/drivers/usb/devio.c        2003-09-02 10:32:33.000000000 +0200
@@ -383,9 +383,6 @@ static int checkintf(struct dev_state *p
                return -EINVAL;
        if (test_bit(intf, &ps->ifclaimed))
                return 0;
-       /* if not yet claimed, claim it for the driver */
-       printk(KERN_WARNING "usbdevfs: process %d (%s) did not claim interface %u 
before use\n",
-              current->pid, current->comm, intf);
        return claimintf(ps, intf);
 }
 


-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to