aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/usb.c
AgeCommit message (Collapse)Author
2024-02-08LICENSE Changed to GPL2+ for project and source code According to approval ↵bigbear
from copyright holders - see: https://github.com/lpereira/hardinfo/issues/530 https://github.com/lpereira/hardinfo/issues/707
2021-11-15Add loongarch support.liuxiang88
2021-11-07Update copyright informationL Pereira
2019-12-27usb: vendor tags in listBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-12-27usb: use vendor flag for vendor fieldsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-09usb: Added vendor link based on reported manufacturerOndrej Čerman
2019-08-04usb: added more propertiesOndrej Čerman
2019-07-29usb: added interface labelOndrej Čerman
2019-07-29usb: added info from sysfsOndrej Čerman
2019-07-12Show links for vendorsLeandro Pereira
2019-06-28Use USB icon for USB hubsLeandro Pereira
2018-11-30devices/usb: Add USB interfaces and device iconsOndrej Čerman
* devices/usb: Added support for USB interfaces * devices/usb: added icons for usb devices * tabs -> spaces
2018-04-24devices/usb: remove old, apparently non-functional, scan methodsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-17devices/usb: remove unnecessary incrementationBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12usb: requested changesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12usb_util.cBurt P
A set of functions for getting information for a single USB device, or a list of all devices. The only implemented method is using `lsusb`, which is slow. A method using sysfs would be much better. The existing sysfs and procfs methods in devices/usb.c do not appear to work, so it would have to be something new. devices/usb.c modified to use usb_util, but all the old code is still there. Signed-off-by: Burt P <pburt0@gmail.com>
2017-10-29Fixed possible memory leak (#201)Roman Kalashnikov
Warnings, found using PVS-Studio: hardinfo/modules/devices/usb.c 397 err V773 The function was exited without releasing the 'temp' pointer. A memory leak is possible. hardinfo/modules/computer/uptime.c 33 err V773 The function was exited without releasing the 'ui' pointer. A memory leak is possible.
2017-08-14usb.c: tweaks and make strings translatableBurt P
Only tested __scan_usb_lsusb(). I can't test __scan_usb_procfs() or __scan_usb_sysfs() because those do not work on any machine I have access to. Signed-off-by: Burt P <pburt0@gmail.com>
2016-07-30Fix multiple problems in USB device listingLeandro Pereira
2015-10-25ARM fixes.jamesbond
2015-10-25quote lsusb -v output so it is safe for hardinfo.jamesbond
2015-10-25fix usb information display.jamesbond
2015-10-25revert commit [d5afcb6851]; fix the real cause of missing RAM display (use ↵jamesbond
moreinfo_lookup rather than hi_more_info); fix usb display crashing (util.c now looks for lsusb in /usr/sbin first); fix glibc version not showing (glibc located in /lib64/libc.so.6); initial support for DDR3 spd-decoding (incomplete, the manufacturer is not shown yet).
2013-03-05Fix parsing of usb devicesGeorge Schneeloch
This creates a temporary file with the lsusb information, which allows fseek to work properly.
2012-01-26Better manage moreinfo hashesLeandro Pereira
Have only one for the whole program and use per-module namespaces/prefixes so that each module can clear its own information easily.
2012-01-22Fix USB device listing when parsing lsusb outputLeandro Pereira
2010-08-15Fix potential problems found by clang static analyzer.Leandro Pereira
2010-05-03Move files from hardinfo2 to root.Leandro A. F. Pereira