From: Ajit Khaparde Date: Fri, 15 May 2020 06:37:34 +0000 (-0700) Subject: net/bnxt: fix error log for command timeout X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;ds=sidebyside;h=4939f374ad369b4b15ba17a186bd17bf736371f0;p=dpdk.git net/bnxt: fix error log for command timeout Log the command sequence number to aid debug in case of a FW command timeout. Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde Reviewed-by: Somnath Kotur Reviewed-by: Kalesh AP --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 77a911067e..d80d67a2d5 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -164,8 +164,9 @@ static int bnxt_hwrm_send_message(struct bnxt *bp, void *msg, rte_cpu_to_le_16(req->req_type) == HWRM_VER_GET) return -ETIMEDOUT; - PMD_DRV_LOG(ERR, "Error(timeout) sending msg 0x%04x\n", - req->req_type); + PMD_DRV_LOG(ERR, + "Error(timeout) sending msg 0x%04x, seq_id %d\n", + req->req_type, req->seq_id); return -ETIMEDOUT; } return 0;