* [PATCH] Fix udevinfo major/minor prints
@ 2005-01-11 23:38 Roland Dreier
2005-01-12 1:46 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Roland Dreier @ 2005-01-11 23:38 UTC (permalink / raw)
To: linux-hotplug
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix udevinfo major/minor prints
2005-01-11 23:38 [PATCH] Fix udevinfo major/minor prints Roland Dreier
@ 2005-01-12 1:46 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-01-12 1:46 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2005-01-11 at 15:38 -0800, Roland Dreier wrote:
> 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" ;)
I've applied it to my tree. Thanks for fixing it.
Kay
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-12 1:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-11 23:38 [PATCH] Fix udevinfo major/minor prints Roland Dreier
2005-01-12 1:46 ` Kay Sievers
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).