chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
force event socket buffer size to 16MB
[elogind.git]
/
udevinfo.c
diff --git
a/udevinfo.c
b/udevinfo.c
index 0089df46b651571a11675fee365da8631bad7469..b668655f29ec21e6a739c9dbdee65bd1ae48592e 100644
(file)
--- a/
udevinfo.c
+++ b/
udevinfo.c
@@
-166,16
+166,16
@@
exit:
return retval;
}
return retval;
}
-static void
dump
_name_devpath(struct udevice *udev) {
+static void
export
_name_devpath(struct udevice *udev) {
printf("%s=%s/%s\n", udev->devpath, udev_root, udev->name);
}
printf("%s=%s/%s\n", udev->devpath, udev_root, udev->name);
}
-static void
dump
_record(struct udevice *udev) {
+static void
export
_record(struct udevice *udev) {
print_record(udev);
printf("\n");
}
print_record(udev);
printf("\n");
}
-static void
dump
_db(void fnct(struct udevice *udev)) {
+static void
export
_db(void fnct(struct udevice *udev)) {
LIST_HEAD(name_list);
struct name_entry *name_loop;
LIST_HEAD(name_list);
struct name_entry *name_loop;
@@
-204,10
+204,9
@@
static void print_help(void)
" -p PATH sysfs device path used for query or chain\n"
" -n NAME node/symlink name used for query\n"
"\n"
" -p PATH sysfs device path used for query or chain\n"
" -n NAME node/symlink name used for query\n"
"\n"
- " -r pr
int udev
root\n"
+ " -r pr
epend to query result or print udev_
root\n"
" -a print all SYSFS_attributes along the device chain\n"
" -a print all SYSFS_attributes along the device chain\n"
- " -d print the relationship of devpath and the node name for all\n"
- " -e print the content of the udev database\n"
+ " -e export the content of the udev database\n"
" -V print udev version\n"
" -h print this help text\n"
"\n");
" -V print udev version\n"
" -h print this help text\n"
"\n");
@@
-299,10
+298,10
@@
int main(int argc, char *argv[], char *envp[])
action = ACTION_ATTRIBUTE_WALK;
break;
case 'd':
action = ACTION_ATTRIBUTE_WALK;
break;
case 'd':
-
dump_db(dump
_name_devpath);
+
export_db(export
_name_devpath);
goto exit;
case 'e':
goto exit;
case 'e':
-
dump_db(dump
_record);
+
export_db(export
_record);
goto exit;
case 'V':
printf("udevinfo, version %s\n", UDEV_VERSION);
goto exit;
case 'V':
printf("udevinfo, version %s\n", UDEV_VERSION);