chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libudev: test - add udev_device_get_property_value()
[elogind.git]
/
udev
/
lib
/
test-libudev.c
diff --git
a/udev/lib/test-libudev.c
b/udev/lib/test-libudev.c
index fd12bd9344ccbc9c0b576452aa4b0e1250a8a86b..592a147e0124461f4871eb23702bd6853e0760e3 100644
(file)
--- 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);
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);
str = udev_device_get_sysattr_value(device, "dev");
if (str != NULL)
printf("attr{dev}: '%s'\n", str);