summaryrefslogtreecommitdiff
path: root/libudev
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2009-10-20 06:55:42 +0900
committerKay Sievers <kay.sievers@vrfy.org>2009-10-20 06:55:42 +0900
commit1230d021bd75de9b1503bbaa807d6a59789963db (patch)
tree3787f7f9b2038d6775a690576bdd137f0e1a3ed7 /libudev
parent0ddfae5fff8bffb46263c4f0b5c1d41d559564ab (diff)
libudev: allow to store negative values in the udev database
Diffstat (limited to 'libudev')
-rw-r--r--libudev/libudev-device-private.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libudev/libudev-device-private.c b/libudev/libudev-device-private.c
index 80a4da4c96..66f0328eb3 100644
--- a/libudev/libudev-device-private.c
+++ b/libudev/libudev-device-private.c
@@ -88,15 +88,15 @@ file:
fprintf(f, "S:%s\n", &udev_list_entry_get_name(list_entry)[devlen]);
}
if (udev_device_get_devlink_priority(udev_device) != 0)
- fprintf(f, "L:%u\n", udev_device_get_devlink_priority(udev_device));
+ fprintf(f, "L:%i\n", udev_device_get_devlink_priority(udev_device));
if (udev_device_get_event_timeout(udev_device) >= 0)
- fprintf(f, "T:%u\n", udev_device_get_event_timeout(udev_device));
+ fprintf(f, "T:%i\n", udev_device_get_event_timeout(udev_device));
if (udev_device_get_num_fake_partitions(udev_device) != 0)
- fprintf(f, "A:%u\n", udev_device_get_num_fake_partitions(udev_device));
+ fprintf(f, "A:%i\n", udev_device_get_num_fake_partitions(udev_device));
if (udev_device_get_ignore_remove(udev_device))
- fprintf(f, "R:%u\n", udev_device_get_ignore_remove(udev_device));
+ fprintf(f, "R:%i\n", udev_device_get_ignore_remove(udev_device));
if (udev_device_get_watch_handle(udev_device) >= 0)
- fprintf(f, "W:%u\n", udev_device_get_watch_handle(udev_device));
+ fprintf(f, "W:%i\n", udev_device_get_watch_handle(udev_device));
udev_list_entry_foreach(list_entry, udev_device_get_properties_list_entry(udev_device)) {
if (!udev_list_entry_get_flag(list_entry))
continue;