From 019d6669076f52994cca199fbbae6eefbb96aeb8 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 6 Apr 2007 19:50:19 +0200 Subject: udevinfo: export all information stored in database --- udev_db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'udev_db.c') 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); -- cgit v1.2.3-54-g00ecf