From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Dreier Date: Tue, 11 Jan 2005 23:38:15 +0000 Subject: [PATCH] Fix udevinfo major/minor prints Message-Id: <87k6qjwn88.fsf@love-shack.home.digitalvampire.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hope this isn't already fixed in your tree -- it's still in udev-050 at least. This fixes a silly mistake in how udevinfo prints the major and minor numbers (right now it prints the minor next to "MAJOR" and the major next to "MINOR" ;) - Roland Index: udev-050/udevinfo.c =================================--- udev-050.orig/udevinfo.c 2004-12-17 21:53:07.000000000 -0800 +++ udev-050/udevinfo.c 2005-01-11 15:35:39.460527548 -0800 @@ -218,8 +218,8 @@ attr = sysfs_get_classdev_attr(class_dev, "dev"); if (attr) { sscanf(attr->value, "%u:%u", &major, &minor); - printf("MAJOR %u\n", minor); - printf("MINOR %u\n", major); + printf("MAJOR %u\n", major); + printf("MINOR %u\n", minor); } phys_dev = sysfs_get_classdev_device(class_dev); ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ 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