mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
libudev: add sysnum to test program
This commit is contained in:
parent
babcf3cb22
commit
bdeab5c7fd
@ -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_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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user