netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sysfs_format_mac
@ 2013-07-16 19:56 David Miller
  2013-07-16 20:46 ` sysfs_format_mac Joe Perches
  0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2013-07-16 19:56 UTC (permalink / raw)
  To: netdev


I assume that the only reason sysfs_format_mac() exists at all, and
don't just use scnprintf() calls with "%pm\n", is that some devices
have MAC addresses which are not 6 bytes in length.

But it's such a waste to have this special case piece of code
just for that.

It would make so much more sense to allow specifying a length
specifier to %pm and friends.

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

end of thread, other threads:[~2013-07-17  0:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-16 19:56 sysfs_format_mac David Miller
2013-07-16 20:46 ` sysfs_format_mac Joe Perches
2013-07-16 20:58   ` sysfs_format_mac David Miller
2013-07-16 21:12     ` sysfs_format_mac Joe Perches
2013-07-16 23:25       ` sysfs_format_mac David Miller
2013-07-16 23:32         ` sysfs_format_mac Joe Perches
2013-07-16 23:41           ` sysfs_format_mac David Miller
2013-07-17  0:10           ` sysfs_format_mac David Miller

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).