summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-30 10:35:49 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-30 10:35:49 +0000
commit46f5902addaaca7f0a41c3f327b8b47a363c87ca (patch)
tree14ec41606b84cb081761cbbf6695b83d242faf67
parent38c0b46999add5026d4e9b5ef422600b4e3512eb (diff)
downloadldetect-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--NEWS1
-rw-r--r--usb.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 874da48..3feb0e5 100644
--- a/NEWS
+++ b/NEWS
@@ -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)
diff --git a/usb.c b/usb.c
index 60925d4..c275a89 100644
--- a/usb.c
+++ b/usb.c
@@ -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) {