]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
bnxt_en: Fix length value in dmesg log firmware error message.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 15 May 2016 07:04:48 +0000 (03:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 May 2016 17:35:48 +0000 (13:35 -0400)
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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index e20c258775ed36cc6ca84c6e06133abd2a226658..09d6637624757a05fe533901953b6fd94d331caf 100644 (file)
@@ -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;
                }