Module Name:src
Committed By: mrg
Date: Sun Mar 24 03:23:19 UTC 2024
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
usbdevs(8): don't assume usb bus count is the same as max usb bus unit
keep track of the highest usbN value, not the count of busses.
fixes a
Module Name:src
Committed By: mrg
Date: Sun Mar 24 03:23:19 UTC 2024
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
usbdevs(8): don't assume usb bus count is the same as max usb bus unit
keep track of the highest usbN value, not the count of busses.
fixes a
Module Name:src
Committed By: riastradh
Date: Tue Sep 13 08:34:37 UTC 2022
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
usbdevs(8): Misc KNF.
- Fix whitespace and braces.
- malloc(n * sizeof(...)) -> calloc(n, sizeof(...))
To generate a diff of this comm
Module Name:src
Committed By: riastradh
Date: Tue Sep 13 08:34:37 UTC 2022
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
usbdevs(8): Misc KNF.
- Fix whitespace and braces.
- malloc(n * sizeof(...)) -> calloc(n, sizeof(...))
To generate a diff of this comm
Module Name:src
Committed By: gson
Date: Sat Sep 21 16:22:25 UTC 2019
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
Look for up to 16 USB controllers, to match the number of device nodes
now created by MAKEDEV.
To generate a diff of this commit:
cvs rdiff
Module Name:src
Committed By: gson
Date: Sat Sep 21 16:22:25 UTC 2019
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
Look for up to 16 USB controllers, to match the number of device nodes
now created by MAKEDEV.
To generate a diff of this commit:
cvs rdiff
Module Name:src
Committed By: drochner
Date: Tue Feb 2 16:25:31 UTC 2010
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
The structure returned by USB_DEVICEINFO has the vendor/device strings
UTF-8 encoded now. We can't simply print this to a terminal, so
con
Module Name:src
Committed By: christos
Date: Wed Nov 27 17:56:09 UTC 2019
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
Use strtoi instead of atoi() to catch bad input (Alexander Kuleshov)
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/u
Module Name:src
Committed By: christos
Date: Wed Nov 27 17:56:09 UTC 2019
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
Use strtoi instead of atoi() to catch bad input (Alexander Kuleshov)
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/u
Module Name:src
Committed By: mrg
Date: Tue Nov 12 07:41:50 UTC 2019
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
dynamically calculate the list of usb hubs from drvctl if available.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.sb
Module Name:src
Committed By: mrg
Date: Tue Nov 12 07:41:50 UTC 2019
Modified Files:
src/usr.sbin/usbdevs: usbdevs.c
Log Message:
dynamically calculate the list of usb hubs from drvctl if available.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.sb
"Andreas Gustafsson" writes:
> Module Name: src
> Committed By: gson
> Date: Sat Sep 21 16:22:25 UTC 2019
>
> Modified Files:
> src/usr.sbin/usbdevs: usbdevs.c
>
> Log Message:
> Look for up to 16 USB controllers, to match the number of device nodes
> now created by MAKEDEV.
thank
Hi mrg
You wrote:
> > Look for up to 16 USB controllers, to match the number of device nodes
> > now created by MAKEDEV.
>
> thanks for doing this. you inspired me to get usbdevs to get the
> count from drvctl(8) if available, so next time we don't have to
> patch it again. based upon the code
Matthew,
On further thought, I think your patch won't work correctly in cases
where USB controllers are detached. For example, if you attach usb0
and usb1, and then detach usb0, getusbcount_device() will return 1,
and usbdevs will try to list devices only on the detached usb0, and
not on the stil
> On further thought, I think your patch won't work correctly in cases
> where USB controllers are detached. For example, if you attach usb0
> and usb1, and then detach usb0, getusbcount_device() will return 1,
> and usbdevs will try to list devices only on the detached usb0, and
> not on the stil
15 matches
Mail list logo