summaryrefslogtreecommitdiff
path: root/libudev/libudev-device-private.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-12-15 08:57:46 +0100
committerKay Sievers <kay.sievers@vrfy.org>2010-12-15 08:58:46 +0100
commit9c6a11b1c6c68dabfd28b72d361da0e1930c7321 (patch)
tree581eed5eeb14013c6ec4e9669ed14d6ed69d107e /libudev/libudev-device-private.c
parent93a724d3f8afc4b6fe5c7c9642c79df724324ed3 (diff)
libudev: record and export "age" of device record
Diffstat (limited to 'libudev/libudev-device-private.c')
-rw-r--r--libudev/libudev-device-private.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libudev/libudev-device-private.c b/libudev/libudev-device-private.c
index 36824a7478..3afa82e04f 100644
--- a/libudev/libudev-device-private.c
+++ b/libudev/libudev-device-private.c
@@ -147,6 +147,8 @@ int udev_device_update_db(struct udev_device *udev_device)
fprintf(f, "L:%i\n", udev_device_get_devlink_priority(udev_device));
if (udev_device_get_watch_handle(udev_device) >= 0)
fprintf(f, "W:%i\n", udev_device_get_watch_handle(udev_device));
+ if (udev_device_get_usec_initialized(udev_device) > 0)
+ fprintf(f, "I:%llu\n", udev_device_get_usec_initialized(udev_device));
udev_list_entry_foreach(list_entry, udev_device_get_properties_list_entry(udev_device)) {
if (!udev_list_entry_get_flags(list_entry))
continue;