qlcnic: Fix typo in logs
o Debug logs were not matching with code functionality. o Changed dev_info to netdev_err Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3eead213fe
commit
7bc27a8cd4
|
@ -2786,6 +2786,7 @@ static u64 *qlcnic_83xx_fill_stats(struct qlcnic_adapter *adapter,
|
||||||
void qlcnic_83xx_get_stats(struct qlcnic_adapter *adapter, u64 *data)
|
void qlcnic_83xx_get_stats(struct qlcnic_adapter *adapter, u64 *data)
|
||||||
{
|
{
|
||||||
struct qlcnic_cmd_args cmd;
|
struct qlcnic_cmd_args cmd;
|
||||||
|
struct net_device *netdev = adapter->netdev;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
qlcnic_alloc_mbx_args(&cmd, adapter, QLCNIC_CMD_GET_STATISTICS);
|
qlcnic_alloc_mbx_args(&cmd, adapter, QLCNIC_CMD_GET_STATISTICS);
|
||||||
|
@ -2795,7 +2796,7 @@ void qlcnic_83xx_get_stats(struct qlcnic_adapter *adapter, u64 *data)
|
||||||
data = qlcnic_83xx_fill_stats(adapter, &cmd, data,
|
data = qlcnic_83xx_fill_stats(adapter, &cmd, data,
|
||||||
QLC_83XX_STAT_TX, &ret);
|
QLC_83XX_STAT_TX, &ret);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_info(&adapter->pdev->dev, "Error getting MAC stats\n");
|
netdev_err(netdev, "Error getting Tx stats\n");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
/* Get MAC stats */
|
/* Get MAC stats */
|
||||||
|
@ -2805,8 +2806,7 @@ void qlcnic_83xx_get_stats(struct qlcnic_adapter *adapter, u64 *data)
|
||||||
data = qlcnic_83xx_fill_stats(adapter, &cmd, data,
|
data = qlcnic_83xx_fill_stats(adapter, &cmd, data,
|
||||||
QLC_83XX_STAT_MAC, &ret);
|
QLC_83XX_STAT_MAC, &ret);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_info(&adapter->pdev->dev,
|
netdev_err(netdev, "Error getting MAC stats\n");
|
||||||
"Error getting Rx stats\n");
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
/* Get Rx stats */
|
/* Get Rx stats */
|
||||||
|
@ -2816,8 +2816,7 @@ void qlcnic_83xx_get_stats(struct qlcnic_adapter *adapter, u64 *data)
|
||||||
data = qlcnic_83xx_fill_stats(adapter, &cmd, data,
|
data = qlcnic_83xx_fill_stats(adapter, &cmd, data,
|
||||||
QLC_83XX_STAT_RX, &ret);
|
QLC_83XX_STAT_RX, &ret);
|
||||||
if (ret)
|
if (ret)
|
||||||
dev_info(&adapter->pdev->dev,
|
netdev_err(netdev, "Error getting Rx stats\n");
|
||||||
"Error getting Tx stats\n");
|
|
||||||
out:
|
out:
|
||||||
qlcnic_free_mbx_args(&cmd);
|
qlcnic_free_mbx_args(&cmd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue