Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: dlink: replace printk() with netdev_{info,dbg}() in rio_probe1()

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>

authored by

Yeounsu Moon and committed by
Jakub Kicinski
b70c5c49 4d513329

+7 -10
+7 -10
drivers/net/ethernet/dlink/dl2k.c
··· 279 279 280 280 card_idx++; 281 281 282 - printk (KERN_INFO "%s: %s, %pM, IRQ %d\n", 283 - dev->name, np->name, dev->dev_addr, irq); 282 + netdev_info(dev, "%s, %pM, IRQ %d", np->name, dev->dev_addr, irq); 284 283 if (tx_coalesce > 1) 285 - printk(KERN_INFO "tx_coalesce:\t%d packets\n", 286 - tx_coalesce); 287 - if (np->coalesce) 288 - printk(KERN_INFO 289 - "rx_coalesce:\t%d packets\n" 290 - "rx_timeout: \t%d ns\n", 291 - np->rx_coalesce, np->rx_timeout*640); 284 + netdev_dbg(dev, "tx_coalesce:\t%d packets", tx_coalesce); 285 + if (np->coalesce) { 286 + netdev_dbg(dev, "rx_coalesce:\t%d packets", np->rx_coalesce); 287 + netdev_dbg(dev, "rx_timeout: \t%d ns", np->rx_timeout * 640); 288 + } 292 289 if (np->vlan) 293 - printk(KERN_INFO "vlan(id):\t%d\n", np->vlan); 290 + netdev_dbg(dev, "vlan(id):\t%d", np->vlan); 294 291 return 0; 295 292 296 293 err_out_unmap_rx: