summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-11 04:59:28 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:35:15 -0700
commitf51d8ec66139fd907d971c64e951decdc20eeecb (patch)
treeb9258ce1fc0ab9b2b6f7b493c174b5e13becfc85 /udevinfo.c
parent5d2d1e7e85de4ae363c96d1ab9de795b0f106e14 (diff)
[PATCH] udevinfo: print SUBSYSTEM and DRIVER
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/udevinfo.c b/udevinfo.c
index a80ca82e12..a6daf46be6 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -146,6 +146,7 @@ static int print_device_chain(const char *path)
/* open sysfs class device directory and print all attributes */
printf(" looking at class device '%s':\n", class_dev->path);
+ printf(" SUBSYSTEM=\"%s\"\n", class_dev->classname);
if (print_all_attributes(class_dev->path) != 0) {
printf("couldn't open class device directory\n");
retval = -1;
@@ -167,6 +168,7 @@ static int print_device_chain(const char *path)
printf(" looking at the device chain at '%s':\n", sysfs_dev->path);
printf(" BUS=\"%s\"\n", sysfs_dev->bus);
printf(" ID=\"%s\"\n", sysfs_dev->bus_id);
+ printf(" DRIVER=\"%s\"\n", sysfs_dev->driver_name);
/* open sysfs device directory and print all attributes */
print_all_attributes(sysfs_dev->path);