printk(KERN_INFO PFX "%s: link up\n", dev->name); } else
if (netif_msg_ifup(tp)) printk(KERN_INFO PFX "%s: link up\n", dev->name); } else { if (netif_msg_ifdown(tp)) printk(KERN_INFO PFX "%s: link down\n", dev->name);
static void rtl8169_check_link_status(struct net_device *dev,				      struct rtl8169_private *tp, void __iomem *ioaddr){	unsigned long flags;	spin_lock_irqsave(&tp->lock, flags);	if (tp->link_ok(ioaddr)) {		netif_carrier_on(dev);		printk(KERN_INFO PFX "%s: link up\n", dev->name);	} else		netif_carrier_off(dev);	spin_unlock_irqrestore(&tp->lock, flags);}