chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] cleanup db functions
[elogind.git]
/
udevinfo.c
diff --git
a/udevinfo.c
b/udevinfo.c
index a6daf46be69f03cd5d37827c6950a07e86cfda5b..e9de6e5e095a9e688d0f089612d6bf655afed9b4 100644
(file)
--- 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;