summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
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);