linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clarify udevinfo device walk
@ 2004-03-01 23:52 Kay Sievers
  2004-03-02  0:09 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2004-03-01 23:52 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 125 bytes --]

It seems that the long attribute list can confuse the user.
Se here we print a few words on top the attributes.

thanks,
Kay

[-- Attachment #2: 01-clarify-device-walk.patch --]
[-- Type: text/plain, Size: 814 bytes --]

===== udevinfo.c 1.14 vs edited =====
--- 1.14/udevinfo.c	Wed Feb 25 01:04:14 2004
+++ edited/udevinfo.c	Tue Mar  2 00:46:03 2004
@@ -148,7 +148,14 @@
 		retval = -1;
 		goto exit;
 	}
-	printf("\ndevice '%s' has major:minor %s", class_dev->path, attr->value);
+
+	printf("\nudevinfo starts with the device the node belongs to and then walks up the\n"
+	       "device chain to print for every device found all possibly useful attributes\n"
+	       "in the udev key format.\n"
+	       "Only attributes within one device section may be used in a rule to match the\n"
+	       "device for which the node will be created.\n"
+	       "\n");
+	printf("device '%s' has major:minor %s", class_dev->path, attr->value);
 	sysfs_close_attribute(attr);
 
 	/* open sysfs class device directory and print all attributes */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-02  0:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-01 23:52 [PATCH] clarify udevinfo device walk Kay Sievers
2004-03-02  0:09 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).