Skip to content

Commit

Permalink
tmspci: fix tr%d in printk
Browse files Browse the repository at this point in the history
tmspci driver uses dev->name before register_netdev() and so prints tr%d
in initialization messages. Fix it by using dev_info.

Found and tested on real hardware.

Signed-off-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Meelis Roos authored and David S. Miller committed Sep 22, 2010
1 parent 73da16c commit d9fd1b2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions drivers/net/tokenring/tmspci.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,16 @@ static int __devinit tms_pci_attach(struct pci_dev *pdev, const struct pci_devic
dev->irq = pci_irq_line;
dev->dma = 0;

printk("%s: %s\n", dev->name, cardinfo->name);
printk("%s: IO: %#4lx IRQ: %d\n",
dev->name, dev->base_addr, dev->irq);
dev_info(&pdev->dev, "%s\n", cardinfo->name);
dev_info(&pdev->dev, " IO: %#4lx IRQ: %d\n", dev->base_addr, dev->irq);

tms_pci_read_eeprom(dev);

printk("%s: Ring Station Address: %pM\n",
dev->name, dev->dev_addr);
dev_info(&pdev->dev, " Ring Station Address: %pM\n", dev->dev_addr);

ret = tmsdev_init(dev, &pdev->dev);
if (ret) {
printk("%s: unable to get memory for dev->priv.\n", dev->name);
dev_info(&pdev->dev, "unable to get memory for dev->priv.\n");
goto err_out_region;
}

Expand Down

0 comments on commit d9fd1b2

Please sign in to comment.