CVS commit: src/usr.sbin/usbdevs

2024-03-23 Thread matthew green
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

CVS commit: src/usr.sbin/usbdevs

2024-03-23 Thread matthew green
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

CVS commit: src/usr.sbin/usbdevs

2022-09-13 Thread Taylor R Campbell
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

CVS commit: src/usr.sbin/usbdevs

2022-09-13 Thread Taylor R Campbell
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

CVS commit: src/usr.sbin/usbdevs

2019-09-21 Thread Andreas Gustafsson
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

CVS commit: src/usr.sbin/usbdevs

2019-09-21 Thread Andreas Gustafsson
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

CVS commit: src/usr.sbin/usbdevs

2010-02-02 Thread Matthias Drochner
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

CVS commit: src/usr.sbin/usbdevs

2019-11-27 Thread Christos Zoulas
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

CVS commit: src/usr.sbin/usbdevs

2019-11-27 Thread Christos Zoulas
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

CVS commit: src/usr.sbin/usbdevs

2019-11-11 Thread matthew green
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

CVS commit: src/usr.sbin/usbdevs

2019-11-11 Thread matthew green
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

re: CVS commit: src/usr.sbin/usbdevs

2019-09-21 Thread matthew green
"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

re: CVS commit: src/usr.sbin/usbdevs

2019-09-22 Thread Andreas Gustafsson
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

re: CVS commit: src/usr.sbin/usbdevs

2019-09-22 Thread Andreas Gustafsson
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

re: CVS commit: src/usr.sbin/usbdevs

2019-09-22 Thread matthew green
> 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