diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-22 19:20:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-24 10:16:39 +0200 |
commit | 1bb39cb65bcf6c7ef079c57c64041f60155e5f21 (patch) | |
tree | 5bb5e4264ca6e588a515d9cbaaaee25cfb1bceb2 /drivers/net/ethernet/chelsio | |
parent | via-velocity: Use of_device_get_match_data to simplify code (diff) | |
download | linux-1bb39cb65bcf6c7ef079c57c64041f60155e5f21.tar.xz linux-1bb39cb65bcf6c7ef079c57c64041f60155e5f21.zip |
cxgb4: improve printing NIC information
Currently the interface name and PCI address are printed twice, because
netdev_info() is printing this information implicitly already. This results
in messages like the following. remove the duplicated information.
cxgb4 0000:81:00.4 eth3: eth3: Chelsio T6225-OCP-SO (0000:81:00.4) 1G/10G/25GBASE-SFP28
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index fb6ac730fb50..efa6c98d7459 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -6162,8 +6162,7 @@ static void print_port_info(const struct net_device *dev) --bufp; sprintf(bufp, "BASE-%s", t4_get_port_type_description(pi->port_type)); - netdev_info(dev, "%s: Chelsio %s (%s) %s\n", - dev->name, adap->params.vpd.id, adap->name, buf); + netdev_info(dev, "Chelsio %s %s\n", adap->params.vpd.id, buf); } /* |