From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 01 Mar 2004 23:52:37 +0000 Subject: [PATCH] clarify udevinfo device walk Message-Id: <20040301235237.GC6332@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="2JFBq9zoW8cOFH7v" List-Id: To: linux-hotplug@vger.kernel.org --2JFBq9zoW8cOFH7v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline It seems that the long attribute list can confuse the user. Se here we print a few words on top the attributes. thanks, Kay --2JFBq9zoW8cOFH7v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="01-clarify-device-walk.patch" ===== 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 */ --2JFBq9zoW8cOFH7v-- ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel