]> git.baikalelectronics.ru Git - kernel.git/commit
net: sunhme: output link status with a single print.
authorNick Bowler <nbowler@draconx.ca>
Wed, 13 Jul 2022 01:58:35 +0000 (21:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 13:53:48 +0000 (14:53 +0100)
commitb11e5f6a3a5c170d16c2cf0b1d8053bbf1f6b7de
tree2c5594e6a911f223edcfd82020fa9df49a5f355f
parent057cc8c9005e23330e368afd18839ce3764dc0af
net: sunhme: output link status with a single print.

This driver currently prints the link status using four separate
printk calls, which these days gets presented to the user as four
distinct messages, not exactly ideal:

  [   32.582778] eth0: Link is up using
  [   32.582828] internal
  [   32.582837] transceiver at
  [   32.582888] 100Mb/s, Full Duplex.

Restructure the display_link_mode function to use a single netdev_info
call to present all this information as a single message, which is much
nicer:

  [   33.640143] hme 0000:00:01.1 eth0: Link is up using internal transceiver at 100Mb/s, Full Duplex.

The display_forced_link_mode function has a similar structure, so adjust
it in a similar fashion.

Signed-off-by: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunhme.c