Jesse Brandeburg wrote:
I don't think this is cheating at all. It allows us to use the DPRINTK macro before everything is all set up to print "eth0: blah" and instead it prints "Bus:dev:Fn: blah" which is pretty useful, IMO. If you have any ideas about how to do this better we're open to them. This solves a very specific problem for us.
I never said I didn't understand the change. I fully understand why its done, but that does not excuse clear abuse of an API. netdev->name should never be anything but the interface name.
Other drivers either have special pre-if-register printk prefixes, or they have a pointer priv->msg_name that always points to the correct value.
Jeff - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html