chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1eb037a
)
path_id: allow to be asked about usb_devices not only usb_interfaces
author
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 26 May 2011 15:39:32 +0000
(17:39 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 26 May 2011 15:39:32 +0000
(17:39 +0200)
extras/path_id/path_id.c
patch
|
blob
|
history
diff --git
a/extras/path_id/path_id.c
b/extras/path_id/path_id.c
index 62d26d8c4d5b759b88548050a568e35e7ee69240..683f78d26e2d1374f5c95fde3afc1e19ca493240 100644
(file)
--- a/
extras/path_id/path_id.c
+++ b/
extras/path_id/path_id.c
@@
-355,7
+355,9
@@
static struct udev_device *handle_usb(struct udev_device *parent, char **path)
const char *port;
devtype = udev_device_get_devtype(parent);
const char *port;
devtype = udev_device_get_devtype(parent);
- if (devtype == NULL || strcmp(devtype, "usb_interface") != 0)
+ if (devtype == NULL)
+ return parent;
+ if (strcmp(devtype, "usb_interface") != 0 && strcmp(devtype, "usb_device") != 0)
return parent;
str = udev_device_get_sysname(parent);
return parent;
str = udev_device_get_sysname(parent);