diff options
author | Michael Chan <michael.chan@broadcom.com> | 2016-05-15 09:04:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-15 19:35:48 +0200 |
commit | 8578d6c19a308dea3daf3d03acdf18724ec05590 (patch) | |
tree | 6b276de7af59f1459a72dcd95d68d373833fd494 /drivers | |
parent | bnxt_en: Improve the delay logic for firmware response. (diff) | |
download | linux-8578d6c19a308dea3daf3d03acdf18724ec05590.tar.xz linux-8578d6c19a308dea3daf3d03acdf18724ec05590.zip |
bnxt_en: Fix length value in dmesg log firmware error message.
The len value in the hwrm error message is wrong. Use the properly adjusted
value in the variable len.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index e20c258775ed..09d663762475 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -2836,7 +2836,7 @@ static int bnxt_hwrm_do_send_msg(struct bnxt *bp, void *msg, u32 msg_len, if (i >= tmo_count) { netdev_err(bp->dev, "Error (timeout: %d) msg {0x%x 0x%x} len:%d\n", timeout, le16_to_cpu(req->req_type), - le16_to_cpu(req->seq_id), *resp_len); + le16_to_cpu(req->seq_id), len); return -1; } |