Commit 5eb2cd07 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by David S. Miller

tulip: windbond-840: Fix a debug message

'w89c840_open()' is incorrectly reported in a debug message. Use __func__
instead.

While at it, fix some style issue in the same function.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5911419f
...@@ -630,9 +630,10 @@ static int netdev_open(struct net_device *dev) ...@@ -630,9 +630,10 @@ static int netdev_open(struct net_device *dev)
goto out_err; goto out_err;
if (debug > 1) if (debug > 1)
netdev_dbg(dev, "w89c840_open() irq %d\n", irq); netdev_dbg(dev, "%s() irq %d\n", __func__, irq);
if((i=alloc_ringdesc(dev))) i = alloc_ringdesc(dev);
if (i)
goto out_err; goto out_err;
spin_lock_irq(&np->lock); spin_lock_irq(&np->lock);
...@@ -642,7 +643,7 @@ static int netdev_open(struct net_device *dev) ...@@ -642,7 +643,7 @@ static int netdev_open(struct net_device *dev)
netif_start_queue(dev); netif_start_queue(dev);
if (debug > 2) if (debug > 2)
netdev_dbg(dev, "Done netdev_open()\n"); netdev_dbg(dev, "Done %s()\n", __func__);
/* Set the timer to check for link beat. */ /* Set the timer to check for link beat. */
timer_setup(&np->timer, netdev_timer, 0); timer_setup(&np->timer, netdev_timer, 0);
......
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