[PATCH] net/i40e/base: fix invalid log format characters
Bruce Richardson
bruce.richardson at intel.com
Fri Oct 25 14:27:46 CEST 2024
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 <bruce.richardson at intel.com>
---
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
More information about the dev
mailing list