summaryrefslogtreecommitdiff
path: root/udev_db.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 /udev_db.c
parent68d4af11cae0af3a8e06770228b16613700b363e (diff)
udevinfo: export all information stored in database
Diffstat (limited to 'udev_db.c')
-rw-r--r--udev_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev_db.c b/udev_db.c
index 7b8d02bf81..abc1e5ad5a 100644
--- a/udev_db.c
+++ b/udev_db.c
@@ -157,9 +157,9 @@ int udev_db_add_device(struct udevice *udev)
name_index(udev->dev->devpath, name_loop->name, 1);
}
fprintf(f, "M:%u:%u\n", major(udev->devt), minor(udev->devt));
- if (udev->link_priority)
+ if (udev->link_priority != 0)
fprintf(f, "L:%u\n", udev->link_priority);
- if (udev->partitions)
+ if (udev->partitions != 0)
fprintf(f, "A:%u\n", udev->partitions);
if (udev->ignore_remove)
fprintf(f, "R:%u\n", udev->ignore_remove);