mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
print persistent data with "udevinfo -q all"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
@@ -88,6 +88,8 @@ static int print_record(struct udevice *udev)
|
||||
printf("N: %s\n", udev->name);
|
||||
list_for_each_entry(name_loop, &udev->symlink_list, node)
|
||||
printf("S: %s\n", name_loop->name);
|
||||
list_for_each_entry(name_loop, &udev->env_list, node)
|
||||
printf("E: %s\n", name_loop->name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -321,7 +323,7 @@ int main(int argc, char *argv[], char *envp[])
|
||||
|
||||
retval = udev_db_search_name(devpath, sizeof(devpath), pos);
|
||||
if (retval != 0) {
|
||||
fprintf(stderr, "device not found in database\n");
|
||||
fprintf(stderr, "no record for '%s' in database\n", pos);
|
||||
goto exit;
|
||||
}
|
||||
udev_db_get_device(&udev, devpath);
|
||||
|
||||
Reference in New Issue
Block a user