gianfar: Use pr_<level>, netdev_<level> and netif_<level>
authorJoe Perches <joe@perches.com>
Tue, 14 Jun 2011 08:57:47 +0000 (08:57 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Fri, 17 Jun 2011 03:35:30 +0000 (23:35 -0400)
commit59deab26c1974b29b7f501e0ace0673d5acadae1
tree60f30d7e1591794b3dea085e5a386a57bd77f83c
parentea110733874d5176cb56dcf612a629ffac09dbf0
gianfar: Use pr_<level>, netdev_<level> and netif_<level>

Use the current logging styles.

Add #define DEBUG to get same output for <foo>_dbg messages.
Convert a few bare printks to pr_err.

Fix a likely copy/paste defect where a test was done with RX values:
        if (num_rx_qs > MAX_RX_QS) {
but TX limits were emitted:
        printk(KERN_ERR "num_rx_qs(=%d) greater than MAX_RX_QS(=%d)\n",
                              num_tx_qs, MAX_TX_QS);

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/gianfar.c
drivers/net/gianfar_ethtool.c