summaryrefslogtreecommitdiff
path: root/udev/udevadm-info.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-20 00:01:20 -0700
committerKay Sievers <kay.sievers@vrfy.org>2008-09-20 00:01:20 -0700
commitfb762bb928772f1923fef1e342d8ebca9bf7691f (patch)
tree86916643572d8c9b6bc5007b5c493aa7aaf9c944 /udev/udevadm-info.c
parent38f27948cdafd8a4b90a6b4f1f54b89891983506 (diff)
libudev: udev_device_get_devname -> udev_device_get_devnode
Diffstat (limited to 'udev/udevadm-info.c')
-rw-r--r--udev/udevadm-info.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c
index 3cd889fe00..dbcaaffcdb 100644
--- a/udev/udevadm-info.c
+++ b/udev/udevadm-info.c
@@ -148,7 +148,7 @@ static void print_record(struct udev_device *device)
printf("P: %s\n", udev_device_get_devpath(device));
len = strlen(udev_get_dev_path(udev_device_get_udev(device)));
- printf("N: %s\n", &udev_device_get_devname(device)[len+1]);
+ printf("N: %s\n", &udev_device_get_devnode(device)[len+1]);
i = device_get_devlink_priority(device);
if (i != 0)
printf("L: %i\n", i);
@@ -165,7 +165,7 @@ static void print_record(struct udev_device *device)
static int export_all_cb(struct udev_device *device, void *data)
{
- if (udev_device_get_devname(device) != NULL)
+ if (udev_device_get_devnode(device) != NULL)
print_record(device);
return 0;
}
@@ -436,12 +436,12 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
switch(query) {
case QUERY_NAME:
if (root) {
- printf("%s\n", udev_device_get_devname(device));
+ printf("%s\n", udev_device_get_devnode(device));
} else {
size_t len;
len = strlen(udev_get_dev_path(udev));
- printf("%s\n", &udev_device_get_devname(device)[len+1]);
+ printf("%s\n", &udev_device_get_devnode(device)[len+1]);
}
break;
case QUERY_SYMLINK: