chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move some info() to dbg()
[elogind.git]
/
udev
/
lib
/
test-libudev.c
diff --git
a/udev/lib/test-libudev.c
b/udev/lib/test-libudev.c
index 65d84159cea5cefb68bd1d5a27508499205f265c..4c3bc16aed8c461a249f2f31955c85ec5511548f 100644
(file)
--- a/
udev/lib/test-libudev.c
+++ b/
udev/lib/test-libudev.c
@@
-53,6
+53,13
@@
static void print_device(struct udev_device *device)
str = udev_device_get_syspath(device);
printf("syspath: '%s'\n", str);
str = udev_device_get_syspath(device);
printf("syspath: '%s'\n", str);
+ str = udev_device_get_sysname(device);
+ printf("sysname: '%s'\n", str);
+
+ str = udev_device_get_sysnum(device);
+ if (str != NULL)
+ printf("sysnum: '%s'\n", str);
+
str = udev_device_get_devpath(device);
printf("devpath: '%s'\n", str);
str = udev_device_get_devpath(device);
printf("devpath: '%s'\n", str);
@@
-90,7
+97,7
@@
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_attr_value(device, "dev");
+ str = udev_device_get_
sys
attr_value(device, "dev");
if (str != NULL)
printf("attr{dev}: '%s'\n", str);
if (str != NULL)
printf("attr{dev}: '%s'\n", str);