[PATCH] lsusb

Souf Oued souf_oued at yahoo.fr
Thu Mar 18 19:42:19 UTC 2010


Le 16/03/2010 01:36, Denys Vlasenko a écrit :
> On Wednesday 03 March 2010 22:51, Souf Oued wrote:
>> Hi,
>> This patch makes lsusb compatible with kernel>= 2.6.32
>
> -               if (strcmp(tokens[0], "DEVICE") == 0) {
> -                       bus = xstrdup(tokens[4]);
> -                       device = xstrdup(tokens[5]);
> +               if (strcmp(tokens[0], "DEVNAME") == 0) {
> +                       bus = xstrdup(tokens[3]);
> +                       device = xstrdup(tokens[4]);
>
> Do I read this right that the format of that file has changed?
> So, the applet will work correctly either on 2.6.31
> or on 2.6.32, but not on both?
> --
> vda
>
Hi,
"DEVICE" it is no longer exported to userspace with kernel >= 2.6.32
with this patch lsusb works correctly with kernel <= 2.6.31 and kernel 
 >= 2.6.32.
but not apply this version please, a new patch is attached

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-1.6.0-lsusb.patch
Type: text/x-patch
Size: 1628 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20100318/02b9e5b0/attachment.bin>


More information about the busybox mailing list