8390 : Replace ei_debug with msg_enable/NETIF_MSG_* feature
Removed the shared ei_debug variable. Replaced it by adding u32 msg_enable to the private struct ei_device. Now each 8390 ethernet instance has a per-device logging variable. Changed older style printk() calls to more canonical forms. Tested on: ne, ne2k-pci, smc-ultra, and wd hardware. V4.0 - Substituted pr_info() and pr_debug() for printk() KERN_INFO and KERN_DEBUG V3.0 - Checked for cases where pr_cont() was most appropriate choice. - Changed module parameter from 'debug' to 'msg_enable' because debug was no longer the best description. V2.0 - Changed netif_msg_(drv|probe|ifdown|rx_err|tx_err|tx_queued|intr|rx_status|hw) to netif_(dbg|info|warn|err) where possible. Signed-off-by: Matthew Whitehead <tedheadster@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7e98056964
commit
c45f812f02
@@ -66,6 +66,7 @@ static void hydra_block_input(struct net_device *dev, int count,
|
||||
static void hydra_block_output(struct net_device *dev, int count,
|
||||
const unsigned char *buf, int start_page);
|
||||
static void hydra_remove_one(struct zorro_dev *z);
|
||||
static u32 hydra_msg_enable;
|
||||
|
||||
static struct zorro_device_id hydra_zorro_tbl[] = {
|
||||
{ ZORRO_PROD_HYDRA_SYSTEMS_AMIGANET },
|
||||
@@ -119,6 +120,7 @@ static int hydra_init(struct zorro_dev *z)
|
||||
int start_page, stop_page;
|
||||
int j;
|
||||
int err;
|
||||
struct ei_device *ei_local;
|
||||
|
||||
static u32 hydra_offsets[16] = {
|
||||
0x00, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x0e,
|
||||
@@ -137,6 +139,8 @@ static int hydra_init(struct zorro_dev *z)
|
||||
start_page = NESM_START_PG;
|
||||
stop_page = NESM_STOP_PG;
|
||||
|
||||
ei_local = netdev_priv(dev);
|
||||
ei_local->msg_enable = hydra_msg_enable;
|
||||
dev->base_addr = ioaddr;
|
||||
dev->irq = IRQ_AMIGA_PORTS;
|
||||
|
||||
@@ -187,15 +191,16 @@ static int hydra_open(struct net_device *dev)
|
||||
|
||||
static int hydra_close(struct net_device *dev)
|
||||
{
|
||||
if (ei_debug > 1)
|
||||
printk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name);
|
||||
struct ei_device *ei_local = netdev_priv(dev);
|
||||
|
||||
netif_dbg(ei_local, ifdown, dev, "Shutting down ethercard.\n");
|
||||
__ei_close(dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void hydra_reset_8390(struct net_device *dev)
|
||||
{
|
||||
printk(KERN_INFO "Hydra hw reset not there\n");
|
||||
netdev_info(dev, "Hydra hw reset not there\n");
|
||||
}
|
||||
|
||||
static void hydra_get_8390_hdr(struct net_device *dev,
|
||||
|
Reference in New Issue
Block a user