This may be a reasonable compromised. Define a couple of macros to create
the name.
#define PCI_SLOT_NAME_FMT "%d:%d:%d"
#define PCI_SLOT_NAME(dev) BUS(dev), SLOT(dev), FN(dev)
printk(KERN_WARNING PCI_SLOT_NAME_FMT " is misbehaving. It should be
punished.\n", PCI_SLOT_NAME(dev));
The only problem with this is that the argument to the second macro gets
evaluated multiple times.
This gives you consistent names without reserving a field for the name. If
you really must save those keystrokes, you could come up with shorter names
for the macros.
-Bret
-------------------------------------------------------------
SBS Technologies, Connectivity Products
... solutions for real-time connectivity
Bret Indrelee, Engineer
SBS Technologies, Inc., Connectivity Products
1284 Corporate Center Drive, St. Paul MN 55121
Direct: (651) 905-4731
Main: (651) 905-4700 Fax: (651) 905-4701
E-mail: bindrelee@sbs-cp.com http://www.sbs.com
-------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/