summaryrefslogtreecommitdiff
path: root/udev/lib/test-libudev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-01-06 16:52:40 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-01-06 16:52:40 +0100
commit56c141eceb34041aa68bb9695c23eda165f47726 (patch)
treedf8a6bec96ecaa2956b6974771942203316a1ae9 /udev/lib/test-libudev.c
parent3d7b2831cd661afd7d946791110b6ad5a7156d7f (diff)
libudev: test - add udev_device_get_property_value()
Diffstat (limited to 'udev/lib/test-libudev.c')
-rw-r--r--udev/lib/test-libudev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c
index fd12bd9344..592a147e01 100644
--- a/udev/lib/test-libudev.c
+++ b/udev/lib/test-libudev.c
@@ -101,6 +101,10 @@ static void print_device(struct udev_device *device)
if (count > 0)
printf("found %i properties\n", count);
+ str = udev_device_get_property_value(device, "MAJOR");
+ if (str != NULL)
+ printf("MAJOR: '%s'\n", str);
+
str = udev_device_get_sysattr_value(device, "dev");
if (str != NULL)
printf("attr{dev}: '%s'\n", str);