summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-08-27 15:37:03 +0200
committerKay Sievers <kay.sievers@suse.de>2005-08-27 15:37:03 +0200
commit64d735e652e949dae5bcaf2bd2004a2d67e627cf (patch)
treeb9c45aa08c2b6725ac1b2da6a31a944a4b84b0a0 /udevinfo.c
parentdb481105c2cf2092e1499736d6619bf194f91711 (diff)
print persistent data with "udevinfo -q all"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/udevinfo.c b/udevinfo.c
index 814bd1e90a..11b0104581 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -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);