drivers/net/ixgbe/ixgbe_main.c: Use pr_<level>

Did not add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
because no printk in this module used message prefixing.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Joe Perches 2010-09-07 21:35:17 +00:00 committed by David S. Miller
parent e8e9f6966a
commit c7689578f5

View File

@ -282,17 +282,17 @@ static void ixgbe_regdump(struct ixgbe_hw *hw, struct ixgbe_reg_info *reginfo)
regs[i] = IXGBE_READ_REG(hw, IXGBE_TXDCTL(i)); regs[i] = IXGBE_READ_REG(hw, IXGBE_TXDCTL(i));
break; break;
default: default:
printk(KERN_INFO "%-15s %08x\n", reginfo->name, pr_info("%-15s %08x\n", reginfo->name,
IXGBE_READ_REG(hw, reginfo->ofs)); IXGBE_READ_REG(hw, reginfo->ofs));
return; return;
} }
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
snprintf(rname, 16, "%s[%d-%d]", reginfo->name, i*8, i*8+7); snprintf(rname, 16, "%s[%d-%d]", reginfo->name, i*8, i*8+7);
printk(KERN_ERR "%-15s ", rname); pr_err("%-15s", rname);
for (j = 0; j < 8; j++) for (j = 0; j < 8; j++)
printk(KERN_CONT "%08x ", regs[i*8+j]); pr_cont(" %08x", regs[i*8+j]);
printk(KERN_CONT "\n"); pr_cont("\n");
} }
} }
@ -322,18 +322,18 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
/* Print netdevice Info */ /* Print netdevice Info */
if (netdev) { if (netdev) {
dev_info(&adapter->pdev->dev, "Net device Info\n"); dev_info(&adapter->pdev->dev, "Net device Info\n");
printk(KERN_INFO "Device Name state " pr_info("Device Name state "
"trans_start last_rx\n"); "trans_start last_rx\n");
printk(KERN_INFO "%-15s %016lX %016lX %016lX\n", pr_info("%-15s %016lX %016lX %016lX\n",
netdev->name, netdev->name,
netdev->state, netdev->state,
netdev->trans_start, netdev->trans_start,
netdev->last_rx); netdev->last_rx);
} }
/* Print Registers */ /* Print Registers */
dev_info(&adapter->pdev->dev, "Register Dump\n"); dev_info(&adapter->pdev->dev, "Register Dump\n");
printk(KERN_INFO " Register Name Value\n"); pr_info(" Register Name Value\n");
for (reginfo = (struct ixgbe_reg_info *)ixgbe_reg_info_tbl; for (reginfo = (struct ixgbe_reg_info *)ixgbe_reg_info_tbl;
reginfo->name; reginfo++) { reginfo->name; reginfo++) {
ixgbe_regdump(hw, reginfo); ixgbe_regdump(hw, reginfo);
@ -344,13 +344,12 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
goto exit; goto exit;
dev_info(&adapter->pdev->dev, "TX Rings Summary\n"); dev_info(&adapter->pdev->dev, "TX Rings Summary\n");
printk(KERN_INFO "Queue [NTU] [NTC] [bi(ntc)->dma ] " pr_info("Queue [NTU] [NTC] [bi(ntc)->dma ] leng ntw timestamp\n");
"leng ntw timestamp\n");
for (n = 0; n < adapter->num_tx_queues; n++) { for (n = 0; n < adapter->num_tx_queues; n++) {
tx_ring = adapter->tx_ring[n]; tx_ring = adapter->tx_ring[n];
tx_buffer_info = tx_buffer_info =
&tx_ring->tx_buffer_info[tx_ring->next_to_clean]; &tx_ring->tx_buffer_info[tx_ring->next_to_clean];
printk(KERN_INFO " %5d %5X %5X %016llX %04X %3X %016llX\n", pr_info(" %5d %5X %5X %016llX %04X %3X %016llX\n",
n, tx_ring->next_to_use, tx_ring->next_to_clean, n, tx_ring->next_to_use, tx_ring->next_to_clean,
(u64)tx_buffer_info->dma, (u64)tx_buffer_info->dma,
tx_buffer_info->length, tx_buffer_info->length,
@ -377,10 +376,10 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
for (n = 0; n < adapter->num_tx_queues; n++) { for (n = 0; n < adapter->num_tx_queues; n++) {
tx_ring = adapter->tx_ring[n]; tx_ring = adapter->tx_ring[n];
printk(KERN_INFO "------------------------------------\n"); pr_info("------------------------------------\n");
printk(KERN_INFO "TX QUEUE INDEX = %d\n", tx_ring->queue_index); pr_info("TX QUEUE INDEX = %d\n", tx_ring->queue_index);
printk(KERN_INFO "------------------------------------\n"); pr_info("------------------------------------\n");
printk(KERN_INFO "T [desc] [address 63:0 ] " pr_info("T [desc] [address 63:0 ] "
"[PlPOIdStDDt Ln] [bi->dma ] " "[PlPOIdStDDt Ln] [bi->dma ] "
"leng ntw timestamp bi->skb\n"); "leng ntw timestamp bi->skb\n");
@ -388,7 +387,7 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
tx_desc = IXGBE_TX_DESC_ADV(tx_ring, i); tx_desc = IXGBE_TX_DESC_ADV(tx_ring, i);
tx_buffer_info = &tx_ring->tx_buffer_info[i]; tx_buffer_info = &tx_ring->tx_buffer_info[i];
u0 = (struct my_u0 *)tx_desc; u0 = (struct my_u0 *)tx_desc;
printk(KERN_INFO "T [0x%03X] %016llX %016llX %016llX" pr_info("T [0x%03X] %016llX %016llX %016llX"
" %04X %3X %016llX %p", i, " %04X %3X %016llX %p", i,
le64_to_cpu(u0->a), le64_to_cpu(u0->a),
le64_to_cpu(u0->b), le64_to_cpu(u0->b),
@ -399,13 +398,13 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
tx_buffer_info->skb); tx_buffer_info->skb);
if (i == tx_ring->next_to_use && if (i == tx_ring->next_to_use &&
i == tx_ring->next_to_clean) i == tx_ring->next_to_clean)
printk(KERN_CONT " NTC/U\n"); pr_cont(" NTC/U\n");
else if (i == tx_ring->next_to_use) else if (i == tx_ring->next_to_use)
printk(KERN_CONT " NTU\n"); pr_cont(" NTU\n");
else if (i == tx_ring->next_to_clean) else if (i == tx_ring->next_to_clean)
printk(KERN_CONT " NTC\n"); pr_cont(" NTC\n");
else else
printk(KERN_CONT "\n"); pr_cont("\n");
if (netif_msg_pktdata(adapter) && if (netif_msg_pktdata(adapter) &&
tx_buffer_info->dma != 0) tx_buffer_info->dma != 0)
@ -419,11 +418,11 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
/* Print RX Rings Summary */ /* Print RX Rings Summary */
rx_ring_summary: rx_ring_summary:
dev_info(&adapter->pdev->dev, "RX Rings Summary\n"); dev_info(&adapter->pdev->dev, "RX Rings Summary\n");
printk(KERN_INFO "Queue [NTU] [NTC]\n"); pr_info("Queue [NTU] [NTC]\n");
for (n = 0; n < adapter->num_rx_queues; n++) { for (n = 0; n < adapter->num_rx_queues; n++) {
rx_ring = adapter->rx_ring[n]; rx_ring = adapter->rx_ring[n];
printk(KERN_INFO "%5d %5X %5X\n", n, pr_info("%5d %5X %5X\n",
rx_ring->next_to_use, rx_ring->next_to_clean); n, rx_ring->next_to_use, rx_ring->next_to_clean);
} }
/* Print RX Rings */ /* Print RX Rings */
@ -454,13 +453,13 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
*/ */
for (n = 0; n < adapter->num_rx_queues; n++) { for (n = 0; n < adapter->num_rx_queues; n++) {
rx_ring = adapter->rx_ring[n]; rx_ring = adapter->rx_ring[n];
printk(KERN_INFO "------------------------------------\n"); pr_info("------------------------------------\n");
printk(KERN_INFO "RX QUEUE INDEX = %d\n", rx_ring->queue_index); pr_info("RX QUEUE INDEX = %d\n", rx_ring->queue_index);
printk(KERN_INFO "------------------------------------\n"); pr_info("------------------------------------\n");
printk(KERN_INFO "R [desc] [ PktBuf A0] " pr_info("R [desc] [ PktBuf A0] "
"[ HeadBuf DD] [bi->dma ] [bi->skb] " "[ HeadBuf DD] [bi->dma ] [bi->skb] "
"<-- Adv Rx Read format\n"); "<-- Adv Rx Read format\n");
printk(KERN_INFO "RWB[desc] [PcsmIpSHl PtRs] " pr_info("RWB[desc] [PcsmIpSHl PtRs] "
"[vl er S cks ln] ---------------- [bi->skb] " "[vl er S cks ln] ---------------- [bi->skb] "
"<-- Adv Rx Write-Back format\n"); "<-- Adv Rx Write-Back format\n");
@ -471,13 +470,13 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
staterr = le32_to_cpu(rx_desc->wb.upper.status_error); staterr = le32_to_cpu(rx_desc->wb.upper.status_error);
if (staterr & IXGBE_RXD_STAT_DD) { if (staterr & IXGBE_RXD_STAT_DD) {
/* Descriptor Done */ /* Descriptor Done */
printk(KERN_INFO "RWB[0x%03X] %016llX " pr_info("RWB[0x%03X] %016llX "
"%016llX ---------------- %p", i, "%016llX ---------------- %p", i,
le64_to_cpu(u0->a), le64_to_cpu(u0->a),
le64_to_cpu(u0->b), le64_to_cpu(u0->b),
rx_buffer_info->skb); rx_buffer_info->skb);
} else { } else {
printk(KERN_INFO "R [0x%03X] %016llX " pr_info("R [0x%03X] %016llX "
"%016llX %016llX %p", i, "%016llX %016llX %p", i,
le64_to_cpu(u0->a), le64_to_cpu(u0->a),
le64_to_cpu(u0->b), le64_to_cpu(u0->b),
@ -503,11 +502,11 @@ static void ixgbe_dump(struct ixgbe_adapter *adapter)
} }
if (i == rx_ring->next_to_use) if (i == rx_ring->next_to_use)
printk(KERN_CONT " NTU\n"); pr_cont(" NTU\n");
else if (i == rx_ring->next_to_clean) else if (i == rx_ring->next_to_clean)
printk(KERN_CONT " NTC\n"); pr_cont(" NTC\n");
else else
printk(KERN_CONT "\n"); pr_cont("\n");
} }
} }
@ -7176,8 +7175,7 @@ static struct pci_driver ixgbe_driver = {
static int __init ixgbe_init_module(void) static int __init ixgbe_init_module(void)
{ {
int ret; int ret;
pr_info("%s - version %s\n", ixgbe_driver_string, pr_info("%s - version %s\n", ixgbe_driver_string, ixgbe_driver_version);
ixgbe_driver_version);
pr_info("%s\n", ixgbe_copyright); pr_info("%s\n", ixgbe_copyright);
#ifdef CONFIG_IXGBE_DCA #ifdef CONFIG_IXGBE_DCA