summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-04-06 19:50:19 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-04-06 19:50:19 +0200
commit019d6669076f52994cca199fbbae6eefbb96aeb8 (patch)
treeb33bf7681008f903f9dbba506087054ce0a53417 /udevinfo.c
parent68d4af11cae0af3a8e06770228b16613700b363e (diff)
udevinfo: export all information stored in database
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/udevinfo.c b/udevinfo.c
index 4b4876cc11..f36f240f0a 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -144,9 +144,14 @@ static void print_record(struct udevice *udev)
printf("P: %s\n", udev->dev->devpath);
printf("N: %s\n", udev->name);
- printf("L: %i\n", udev->link_priority);
list_for_each_entry(name_loop, &udev->symlink_list, node)
printf("S: %s\n", name_loop->name);
+ if (udev->link_priority != 0)
+ printf("L: %i\n", udev->link_priority);
+ if (udev->partitions != 0)
+ printf("A:%u\n", udev->partitions);
+ if (udev->ignore_remove)
+ printf("R:%u\n", udev->ignore_remove);
list_for_each_entry(name_loop, &udev->env_list, node)
printf("E: %s\n", name_loop->name);
}