summaryrefslogtreecommitdiff
path: root/udev/lib
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-26 19:41:50 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-26 19:41:50 +0200
commitcd42b50d866c35c7ffbab07920dc1323dd978a23 (patch)
treee0bfda8f0506abb319ebccf10df8df00bdcca6e5 /udev/lib
parent04f5d75f0cfaf82e1bbdec5e398e95b3d6f3f16d (diff)
libudev: enumerate_get_devices_list -> enumerate_get_list
Diffstat (limited to 'udev/lib')
-rw-r--r--udev/lib/exported_symbols2
-rw-r--r--udev/lib/libudev-device.c7
-rw-r--r--udev/lib/libudev-enumerate.c2
-rw-r--r--udev/lib/libudev.h2
-rw-r--r--udev/lib/test-libudev.c2
5 files changed, 7 insertions, 8 deletions
diff --git a/udev/lib/exported_symbols b/udev/lib/exported_symbols
index e46aecbd37..9650ef4d98 100644
--- a/udev/lib/exported_symbols
+++ b/udev/lib/exported_symbols
@@ -33,7 +33,7 @@ udev_device_get_attr_value
udev_enumerate_new_from_subsystems
udev_enumerate_ref
udev_enumerate_unref
-udev_enumerate_get_devices_list
+udev_enumerate_get_list
udev_monitor_new_from_socket
udev_monitor_new_from_netlink
udev_monitor_enable_receiving
diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c
index 359ae443da..6c6b1d387c 100644
--- a/udev/lib/libudev-device.c
+++ b/udev/lib/libudev-device.c
@@ -118,7 +118,6 @@ static int device_read_db(struct udev_device *udev_device)
char target[UTIL_PATH_SIZE];
int target_len;
- info(udev_device->udev, "found a symlink as db file\n");
target_len = readlink(filename, target, sizeof(target));
if (target_len > 0)
target[target_len] = '\0';
@@ -126,9 +125,9 @@ static int device_read_db(struct udev_device *udev_device)
info(udev_device->udev, "error reading db link %s: %s\n", filename, strerror(errno));
return -1;
}
- dbg(udev_device->udev, "db link points to '%s'\n", target);
if (asprintf(&udev_device->devname, "%s/%s", udev_get_dev_path(udev_device->udev), target) < 0)
return -ENOMEM;
+ info(udev_device->udev, "device %p filled with db symlink data '%s'\n", udev_device, udev_device->devname);
return 0;
}
@@ -176,7 +175,7 @@ static int device_read_db(struct udev_device *udev_device)
}
fclose(f);
- info(udev_device->udev, "device %p filled with udev database data\n", udev_device);
+ info(udev_device->udev, "device %p filled with db file data\n", udev_device);
return 0;
}
@@ -272,7 +271,7 @@ struct udev_device *udev_device_new_from_devnum(struct udev *udev, char type, de
enumerate = udev_enumerate_new_from_subsystems(udev, NULL);
if (enumerate == NULL)
return NULL;
- list = udev_enumerate_get_devices_list(enumerate);
+ list = udev_enumerate_get_list(enumerate);
while (list != NULL) {
struct udev_device *device_loop;
diff --git a/udev/lib/libudev-enumerate.c b/udev/lib/libudev-enumerate.c
index 80df8bd72d..6d638670c9 100644
--- a/udev/lib/libudev-enumerate.c
+++ b/udev/lib/libudev-enumerate.c
@@ -54,7 +54,7 @@ void udev_enumerate_unref(struct udev_enumerate *udev_enumerate)
free(udev_enumerate);
}
-struct udev_list *udev_enumerate_get_devices_list(struct udev_enumerate *udev_enumerate)
+struct udev_list *udev_enumerate_get_list(struct udev_enumerate *udev_enumerate)
{
if (udev_enumerate == NULL)
return NULL;
diff --git a/udev/lib/libudev.h b/udev/lib/libudev.h
index 014b53175b..d2e57d4183 100644
--- a/udev/lib/libudev.h
+++ b/udev/lib/libudev.h
@@ -83,7 +83,7 @@ extern const char *udev_device_get_attr_value(struct udev_device *udev_device, c
extern struct udev_enumerate *udev_enumerate_new_from_subsystems(struct udev *udev, const char *subsystem);
extern struct udev_enumerate *udev_enumerate_ref(struct udev_enumerate *udev_enumerate);
extern void udev_enumerate_unref(struct udev_enumerate *udev_enumerate);
-extern struct udev_list *udev_enumerate_get_devices_list(struct udev_enumerate *udev_enumerate);
+extern struct udev_list *udev_enumerate_get_list(struct udev_enumerate *udev_enumerate);
/* udev and kernel device events */
extern struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path);
diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c
index 421d0511a1..19968a1738 100644
--- a/udev/lib/test-libudev.c
+++ b/udev/lib/test-libudev.c
@@ -150,7 +150,7 @@ static int test_enumerate(struct udev *udev, const char *subsystem)
enumerate = udev_enumerate_new_from_subsystems(udev, NULL);
if (enumerate == NULL)
return -1;
- list = udev_enumerate_get_devices_list(enumerate);
+ list = udev_enumerate_get_list(enumerate);
while (list != NULL) {
struct udev_device *device;