Skip to content

Commit 6c7ea69

Browse files
dcuidavem330
authored andcommitted
net: mana: Fix the netdev_err()'s vPort argument in mana_init_port()
Use the correct port index rather than 0. Signed-off-by: Dexuan Cui <[email protected]> Reviewed-by: Haiyang Zhang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 986d2e3 commit 6c7ea69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/microsoft/mana/mana_en.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,8 @@ static int mana_init_port(struct net_device *ndev)
15991599
err = mana_query_vport_cfg(apc, port_idx, &max_txq, &max_rxq,
16001600
&num_indirect_entries);
16011601
if (err) {
1602-
netdev_err(ndev, "Failed to query info for vPort 0\n");
1602+
netdev_err(ndev, "Failed to query info for vPort %d\n",
1603+
port_idx);
16031604
goto reset_apc;
16041605
}
16051606

0 commit comments

Comments
 (0)