diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-04-27 02:21:08 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-04-27 02:21:08 +0200 |
commit | ed68efdf28449fc1bd9fbde0918908b8ded8403d (patch) | |
tree | 4714a81979d78742a31d9571fa2bf4b3fff52d25 /usbmisc.c | |
parent | 148872048b73b29edf383cecea91eb163e856ad6 (diff) | |
download | usbutils-ed68efdf28449fc1bd9fbde0918908b8ded8403d.tar.gz |
/proc/bus/usb -> /dev/bus/usb
Diffstat (limited to 'usbmisc.c')
-rw-r--r-- | usbmisc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -34,7 +34,7 @@ /* ---------------------------------------------------------------------- */ -static const char *procbususb = "/proc/bus/usb"; +static const char *devbususb = "/dev/bus/usb"; /* ---------------------------------------------------------------------- */ @@ -130,7 +130,7 @@ struct usb_device *get_usb_device(const char *path) for (bus = usb_busses; bus; bus = bus->next) { for (dev = bus->devices; dev; dev = dev->next) { - snprintf(device_path, sizeof(device_path), "%s/%s/%s", procbususb, bus->dirname, dev->filename); + snprintf(device_path, sizeof(device_path), "%s/%s/%s", devbususb, bus->dirname, dev->filename); if (!strcmp(device_path, absolute_path)) return dev; } |