1
0
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:
Kay Sievers 2008-10-17 13:54:14 +02:00
parent babcf3cb22
commit bdeab5c7fd

View File

@ -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);