From bdeab5c7fd0489feb241483140a81091cf2802c7 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 17 Oct 2008 13:54:14 +0200 Subject: [PATCH] libudev: add sysnum to test program --- udev/lib/test-libudev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/udev/lib/test-libudev.c b/udev/lib/test-libudev.c index 65d84159c..ded65cca9 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); -- 2.30.2