From 64d735e652e949dae5bcaf2bd2004a2d67e627cf Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 27 Aug 2005 15:37:03 +0200 Subject: print persistent data with "udevinfo -q all" Signed-off-by: Kay Sievers --- udevinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf