Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8578d6c1 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

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: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a11fa2be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}