diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-08-30 10:35:49 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-08-30 10:35:49 +0000 |
commit | 46f5902addaaca7f0a41c3f327b8b47a363c87ca (patch) | |
tree | 14ec41606b84cb081761cbbf6695b83d242faf67 | |
parent | 38c0b46999add5026d4e9b5ef422600b4e3512eb (diff) | |
download | ldetect-46f5902addaaca7f0a41c3f327b8b47a363c87ca.tar ldetect-46f5902addaaca7f0a41c3f327b8b47a363c87ca.tar.gz ldetect-46f5902addaaca7f0a41c3f327b8b47a363c87ca.tar.bz2 ldetect-46f5902addaaca7f0a41c3f327b8b47a363c87ca.tar.xz ldetect-46f5902addaaca7f0a41c3f327b8b47a363c87ca.zip |
fix retrieving info about USB devices with kernel-3.5+ (mga#7248)
poke in /sys/kernel/debug/usb/devices instead of /proc/bus/usb/devices
(needs "mount -t debugfs none /sys/kernel/debug")
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | usb.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,3 +1,4 @@ +- fix retrieving info about USB devices with kernel-3.5+ (mga#7248) - generate PCI classes info using ids from pcutils header instead of deprecated kernel header (Andrey Bondrov) @@ -7,7 +7,7 @@ #include "common.h" #include "names.h" -static char *proc_usb_path_default = "/proc/bus/usb/devices"; +static char *proc_usb_path_default = "/sys/kernel/debug/usb/devices"; char *proc_usb_path = NULL; static void build_text(struct pciusb_entry *e, char *vendor_text, char *product_text) { |