Commit c34150c3 authored by Stephen Hemminger's avatar Stephen Hemminger

[PATCH] acenic - don't print eth%d in messages

Get rid of all the places the acenic driver could print "eth%d" because
the device hasn't been registered yet.  Use the method of having a name pointer
in the private device structure that changes from pci_name() to dev->name.
There was already a field named 'name[]' in the private data structure, but
it was set and never used!

Use netdev_priv(dev) rather than dev->priv as well.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
parent c3276ab1
This diff is collapsed.
...@@ -693,7 +693,7 @@ struct ace_private ...@@ -693,7 +693,7 @@ struct ace_private
int board_idx; int board_idx;
u16 pci_command; u16 pci_command;
u8 pci_latency; u8 pci_latency;
char name[48]; const char *name;
#ifdef INDEX_DEBUG #ifdef INDEX_DEBUG
spinlock_t debug_lock spinlock_t debug_lock
__attribute__ ((aligned (SMP_CACHE_BYTES))); __attribute__ ((aligned (SMP_CACHE_BYTES)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment