summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-05 11:55:59 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:48:48 -0700
commit599e17a3e6678eecfd12874cbd35698591df068d (patch)
tree2f40962f9c177e55d6a212feaf944770b6918c0c /udevinfo.c
parentfa548924d4bf723a310e040feaba3f417757de8a (diff)
[PATCH] udevinfo -d: speed-up device dump
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':