summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/udevinfo.c b/udevinfo.c
index 6dfb918de5..b2d22e984e 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -181,8 +181,8 @@ exit:
return retval;
}
-static int print_dump(struct udevice *udev) {
- printf("%s:%s/%s\n", udev->devpath, udev_root, udev->name);
+static int print_dump(const char *devpath, const char *name) {
+ printf("%s:%s/%s\n", devpath, udev_root, name);
return 0;
}
@@ -260,7 +260,7 @@ int main(int argc, char *argv[], char *envp[])
break;
case 'd':
- udev_db_call_foreach(print_dump);
+ udev_db_dump_names(print_dump);
goto exit;
case 'V':