arcnet: rimi: Fix device name in debug output
authorJiri Kosina <jkosina@suse.cz>
Mon, 16 Apr 2012 02:02:48 +0000 (02:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Apr 2012 02:22:43 +0000 (22:22 -0400)
commitb95465c8fcd7c8619ff9ff7bbf8038ab31c7f34b
tree6831fdf569957754791c0dea1b8594ffd66c6cd7
parent890fdf2a0cb88202d1427589db2cf29c1bdd3c1d
arcnet: rimi: Fix device name in debug output

arcrimi_probe() calls BUGMSG() before register_netdev() happens. BUGMSG()
itself prints dev->name, but as the format string hasn't been expanded by
register_netdev() yet, the output contains bogus device name such as

arc%d: Given: node 00h, shmem 0h, irq 0

As we don't know the device name yet, just drop the prefix completely from
the debugging messages.

Reported-by: Steven Young <sdyoung@vt220.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arcnet/arc-rimi.c