From 46f5902addaaca7f0a41c3f327b8b47a363c87ca Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 30 Aug 2012 10:35:49 +0000 Subject: 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") --- NEWS | 1 + usb.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.1