204-usb-bus-path.patch 415 B

12345678910111213
  1. Fix USB bus path; /proc/bus/usb is deprecated.
  2. --- a/pcap-usb-linux.c
  3. +++ b/pcap-usb-linux.c
  4. @@ -72,7 +72,7 @@
  5. #define USB_TEXT_DIR_OLD "/sys/kernel/debug/usbmon"
  6. #define USB_TEXT_DIR "/sys/kernel/debug/usb/usbmon"
  7. #define SYS_USB_BUS_DIR "/sys/bus/usb/devices"
  8. -#define PROC_USB_BUS_DIR "/proc/bus/usb"
  9. +#define PROC_USB_BUS_DIR "/dev/bus/usb"
  10. #define USB_LINE_LEN 4096
  11. #if __BYTE_ORDER == __LITTLE_ENDIAN