summaryrefslogtreecommitdiff
path: root/udev/udevadm-info.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-28 17:39:31 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-28 17:39:31 +0200
commitbc8184ede9cff156709fe053e3e02ef309cb2920 (patch)
tree60789acfeb936b123de0c311d5a7236dc9310267 /udev/udevadm-info.c
parent41b7a00922bdb1a501cbf2e39282fe64bb94cb6d (diff)
libudev: enumerate - accept list of subsystems to scan, or skip
Diffstat (limited to 'udev/udevadm-info.c')
-rw-r--r--udev/udevadm-info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c
index f59c196e02..e470ff624d 100644
--- a/udev/udevadm-info.c
+++ b/udev/udevadm-info.c
@@ -186,7 +186,7 @@ static int export_devices(struct udev *udev)
struct udev_enumerate *enumerate;
struct udev_list_entry *list_entry;
- enumerate = udev_enumerate_new_from_subsystems(udev, NULL);
+ enumerate = udev_enumerate_new_from_devices(udev, NULL);
if (enumerate == NULL)
return -1;
udev_list_entry_foreach(list_entry, udev_enumerate_get_list_entry(enumerate)) {
@@ -301,7 +301,7 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
rc = 2;
goto exit;
}
- /* add /sys if needed */
+ /* add sys dir if needed */
if (strncmp(optarg, udev_get_sys_path(udev), strlen(udev_get_sys_path(udev))) != 0) {
util_strlcpy(path, udev_get_sys_path(udev), sizeof(path));
util_strlcat(path, optarg, sizeof(path));