From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 19F2D46084; Tue, 14 Jan 2025 10:43:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69EF2402E4; Tue, 14 Jan 2025 10:43:16 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by mails.dpdk.org (Postfix) with ESMTP id 63C1D400EF; Tue, 14 Jan 2025 10:43:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1736847795; x=1768383795; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=0DeAMZ30rMkvzXwt5GkFbrh3A4pb5iq7u3BAGHZBxQE=; b=keQgX34BB/+/HPtQLDne4ymc085Ecr2pP6zqcDcxCCoT+eZ7O3E24Y/C Sj/TChHq7gSZd5zZpLm+Q451zsvoVQSbfBPIkDInlnaqzbM65ELVqSa0Z vVMVhiQqpW2/fK1ItUh1kv465DSfgmUYzKEGi+l1pL1YET6PnJjPlCtzQ DHejKO/5vq0rUkKfRGUECgMS7SbaWH1Or3RsPw6BlAm8Hu+43UGo4kVjm siERqx154/7ZCN3SIvxUyhO62XlIEIXqcauA7uNhhdEjUNqnkTjjVwhlx DL/FChjBXJiYoMbSkld04Azjgeu2NuS0N1Mu+B71EApVtJtduVsmnlPzs g==; X-CSE-ConnectionGUID: Gi2jNS/3SH+f7BrIE+jq+Q== X-CSE-MsgGUID: v9IoL0Q8QV+hg58xlnLztA== X-IronPort-AV: E=McAfee;i="6700,10204,11314"; a="36828239" X-IronPort-AV: E=Sophos;i="6.12,313,1728975600"; d="scan'208";a="36828239" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2025 01:43:13 -0800 X-CSE-ConnectionGUID: o50jpzseSSO7O/VgCD0FGQ== X-CSE-MsgGUID: OZ8pT5+iRpeN5yqPlomZYA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,313,1728975600"; d="scan'208";a="104581977" Received: from unknown (HELO zhichao-dpdk..) ([10.239.252.103]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2025 01:43:10 -0800 From: Zhichao Zeng To: dev@dpdk.org Cc: stable@dpdk.org, Zhichao Zeng , Jaroslaw Ilgiewicz , Ian Stokes , Bruce Richardson , Midde Ajijur Rehaman , Anatoly Burakov , David Marchand Subject: [PATCH] net/i40e/base: fix the debug print format Date: Tue, 14 Jan 2025 18:00:10 +0800 Message-Id: <20250114100010.207536-1-zhichaox.zeng@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch modifies format specifier in debug prints to match to the change of time variables from 64 bit to 32 bit. Fixes: d980a401b137 ("net/i40e/base: add NVM acquire with custom timeout") Fixes: ba90329a5eb3 ("net/i40e/base: fix invalid log format characters") Cc: stable@dpdk.org Signed-off-by: Jaroslaw Ilgiewicz Signed-off-by: Zhichao Zeng --- drivers/net/i40e/base/i40e_nvm.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/net/i40e/base/i40e_nvm.c b/drivers/net/i40e/base/i40e_nvm.c index 3e16a0d997..5ece2ebf55 100644 --- a/drivers/net/i40e/base/i40e_nvm.c +++ b/drivers/net/i40e/base/i40e_nvm.c @@ -79,7 +79,7 @@ enum i40e_status_code i40e_acquire_nvm(struct i40e_hw *hw, if (ret_code) i40e_debug(hw, I40E_DEBUG_NVM, - "NVM acquire type %d failed time_left=%" PRIu32 " ret=%d aq_err=%d\n", + "NVM acquire type %d failed time_left=%u ret=%d aq_err=%d\n", access, time_left, ret_code, hw->aq.asq_last_status); if (ret_code && time_left) { @@ -101,7 +101,7 @@ enum i40e_status_code i40e_acquire_nvm(struct i40e_hw *hw, if (ret_code != I40E_SUCCESS) { hw->nvm.hw_semaphore_timeout = 0; i40e_debug(hw, I40E_DEBUG_NVM, - "NVM acquire timed out, wait %" PRIu32 " ms before trying again. status=%d aq_err=%d\n", + "NVM acquire timed out, wait %u ms before trying again. status=%d aq_err=%d\n", time_left, ret_code, hw->aq.asq_last_status); } } @@ -145,9 +145,8 @@ enum i40e_status_code i40e_acquire_nvm_ex(struct i40e_hw *hw, if (ret_code) i40e_debug(hw, I40E_DEBUG_NVM, - "NVM acquire type %d failed time_left=%llu ret=%d aq_err=%d\n", - access, (unsigned long long)time_left, ret_code, - hw->aq.asq_last_status); + "NVM acquire type %d failed time_left=%u ret=%d aq_err=%d\n", + access, time_left, ret_code, hw->aq.asq_last_status); if (ret_code && time_left) { /* Poll until the current NVM owner timeouts */ @@ -168,9 +167,8 @@ enum i40e_status_code i40e_acquire_nvm_ex(struct i40e_hw *hw, if (ret_code != I40E_SUCCESS) { hw->nvm.hw_semaphore_timeout = 0; i40e_debug(hw, I40E_DEBUG_NVM, - "NVM acquire timed out, wait %llu ms before trying again. status=%d aq_err=%d\n", - (unsigned long long)time_left, ret_code, - hw->aq.asq_last_status); + "NVM acquire timed out, wait %u ms before trying again. status=%d aq_err=%d\n", + time_left, ret_code, hw->aq.asq_last_status); } } -- 2.34.1