Message ID | 20240609070129.12364-1-amishin@t-argos.ru (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,v2] bnxt_en: Adjust logging of firmware messages in case of released token in __hwrm_send() | expand |
On Sun, 9 Jun 2024 10:01:29 +0300 Aleksandr Mishin wrote: > hwrm_err(bp, ctx, "hwrm req_type 0x%x seq id 0x%x error 0x%x\n", > - req_type, token->seq_id, rc); > + req_type, le16_to_cpu(ctx->req->seq_id), rc); The alignment with the ( looks messed up
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c index 1df3d56cc4b5..67d0ba8869f4 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c @@ -680,7 +680,7 @@ static int __hwrm_send(struct bnxt *bp, struct bnxt_hwrm_ctx *ctx) req_type); else if (rc && rc != HWRM_ERR_CODE_PF_UNAVAILABLE) hwrm_err(bp, ctx, "hwrm req_type 0x%x seq id 0x%x error 0x%x\n", - req_type, token->seq_id, rc); + req_type, le16_to_cpu(ctx->req->seq_id), rc); rc = __hwrm_to_stderr(rc); exit: if (token)