From: Kay Sievers Date: Fri, 17 Oct 2008 11:54:14 +0000 (+0200) Subject: libudev: add sysnum to test program X-Git-Tag: 174~1431 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdeab5c7fd0489feb241483140a81091cf2802c7;p=systemd libudev: add sysnum to test program --- diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c index 65d84159..ded65cca 100644 --- 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_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);