]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: dlink: replace printk() with netdev_{info,dbg}() in rio_probe1()
authorYeounsu Moon <yyyynoom@gmail.com>
Mon, 5 Jan 2026 13:05:53 +0000 (22:05 +0900)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 Jan 2026 01:11:38 +0000 (17:11 -0800)
Replace rio_probe1() printk(KERN_INFO) messages with netdev_{info,dbg}().

Keep one netdev_info() line for device identification; move the rest to
netdev_dbg() to avoid spamming the kernel log.

Log rx_timeout on a separate line since netdev_*() prefixes each
message and the multi-line formatting looks broken otherwise.

No functional change intended.

Tested-on: D-Link DGE-550T Rev-A3
Signed-off-by: Yeounsu Moon <yyyynoom@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260105130552.8721-2-yyyynoom@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/dlink/dl2k.c

index 846d58c769eaf09df35d68122fc912ea2e295d9e..69bfb8265d57852b269b25a621f63ebad66c4701 100644 (file)
@@ -279,18 +279,15 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
 
        card_idx++;
 
-       printk (KERN_INFO "%s: %s, %pM, IRQ %d\n",
-               dev->name, np->name, dev->dev_addr, irq);
+       netdev_info(dev, "%s, %pM, IRQ %d", np->name, dev->dev_addr, irq);
        if (tx_coalesce > 1)
-               printk(KERN_INFO "tx_coalesce:\t%d packets\n",
-                               tx_coalesce);
-       if (np->coalesce)
-               printk(KERN_INFO
-                      "rx_coalesce:\t%d packets\n"
-                      "rx_timeout: \t%d ns\n",
-                               np->rx_coalesce, np->rx_timeout*640);
+               netdev_dbg(dev, "tx_coalesce:\t%d packets", tx_coalesce);
+       if (np->coalesce) {
+               netdev_dbg(dev, "rx_coalesce:\t%d packets", np->rx_coalesce);
+               netdev_dbg(dev, "rx_timeout: \t%d ns", np->rx_timeout * 640);
+       }
        if (np->vlan)
-               printk(KERN_INFO "vlan(id):\t%d\n", np->vlan);
+               netdev_dbg(dev, "vlan(id):\t%d", np->vlan);
        return 0;
 
 err_out_unmap_rx: