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 EF3EA45BD6; Fri, 25 Oct 2024 14:27:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B904340156; Fri, 25 Oct 2024 14:27:54 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by mails.dpdk.org (Postfix) with ESMTP id BCBA2400D5 for ; Fri, 25 Oct 2024 14:27:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729859274; x=1761395274; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=kZuvLZoSBbb0SZ03dWVLJ1B339x2JSS9bsWLENDGFC4=; b=Jlj0eODRIYRihFMWeC7Myuoi6g1oQmQwBUv3pXUfrGJ+9x/Q1OlHqFgx LzYM8cGNhS6BTaTafBcf/1T7Jxjw2xkydjuqvbHD+uHk95Mjmc/jGKJsB vnBgJ327M45jwnTkJJYSmYlMJySCN8u8ZRaT4CSRsG8ur5bWaacXgp2j1 6K0R/G0OSwFez6nc9Ng626sRCkLoQVIoUrH3ea18/R7JcQgPsoiGe/79l b7erZKZjD2Lq8Ym16w2wjRW08hX7zW00+3McVwvkPfvwRQq+Dh2DNNGIm Zaq99yCSqqUVz6JDrhtHCz0Ons8GJ7vEiaFKbZkryOWoZLIYqsyQXvxis g==; X-CSE-ConnectionGUID: jHJB2G6gQqWYth114/8vHw== X-CSE-MsgGUID: LhEkH7hYTROYmLCp+ZmPlw== X-IronPort-AV: E=McAfee;i="6700,10204,11236"; a="33330771" X-IronPort-AV: E=Sophos;i="6.11,231,1725346800"; d="scan'208";a="33330771" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 05:27:53 -0700 X-CSE-ConnectionGUID: KBo21n46QDueV3ghpnnHEw== X-CSE-MsgGUID: 15SDv1LXTmeIXoQERPHAYw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,231,1725346800"; d="scan'208";a="85461472" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa005.fm.intel.com with ESMTP; 25 Oct 2024 05:27:52 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH] net/i40e/base: fix invalid log format characters Date: Fri, 25 Oct 2024 13:27:46 +0100 Message-ID: <20241025122746.1775593-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 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 With commit cb593a832630 ("net/i40e/base: reduce size of time variables"), the time_left value is 32-bits rather than 64-bits. However the printf-style format strings were never updated in the logs, so were left at PRIu64. Change them to PRIu32, fixing the build when additional format warnings were enabled. Fixes: cb593a832630 ("net/i40e/base: reduce size of time variables") Signed-off-by: Bruce Richardson --- drivers/net/i40e/base/i40e_nvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/base/i40e_nvm.c b/drivers/net/i40e/base/i40e_nvm.c index 185af67817..3e16a0d997 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=%" PRIu64 " ret=%d aq_err=%d\n", + "NVM acquire type %d failed time_left=%" PRIu32 " 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 %" PRIu64 " ms before trying again. status=%d aq_err=%d\n", + "NVM acquire timed out, wait %" PRIu32 " ms before trying again. status=%d aq_err=%d\n", time_left, ret_code, hw->aq.asq_last_status); } } -- 2.43.0