summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-21 13:48:10 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:36:13 -0700
commit8f2f6e426fc4cc1fa39b864a1792428a4269b751 (patch)
treeefacf88145a24ec9767099c50f313b4900dc5e86 /udevinfo.c
parent311a2b0a1d65a1bd02bbedda0dda90f10d6b6788 (diff)
[PATCH] cleanup db functions
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/udevinfo.c b/udevinfo.c
index a6daf46be6..e9de6e5e09 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -341,8 +341,7 @@ static int process_options(int argc, char *argv[])
}
}
memset(&udev, 0x00, sizeof(struct udevice));
- strfieldcpy(udev.devpath, pos);
- retval = udev_db_get_device(&udev);
+ retval = udev_db_get_device_by_devpath(&udev, pos);
if (retval != 0) {
printf("device not found in database\n");
goto exit;