[PATCH] net/i40e/base: fix invalid log format characters
David Marchand
david.marchand at redhat.com
Fri Oct 25 15:21:02 CEST 2024
On Fri, Oct 25, 2024 at 2:28 PM Bruce Richardson
<bruce.richardson at intel.com> wrote:
>
> 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>
Reviewed-by: David Marchand <david.marchand at redhat.com>
I'll wait for the CI then apply it directly in main.
Btw, I tested this patch after removing following options:
$ git diff
diff --git a/drivers/net/i40e/base/meson.build
b/drivers/net/i40e/base/meson.build
index d94108629b..ffe264a934 100644
--- a/drivers/net/i40e/base/meson.build
+++ b/drivers/net/i40e/base/meson.build
@@ -12,8 +12,6 @@ sources = [
]
error_cflags = ['-Wno-sign-compare', '-Wno-unused-value',
- '-Wno-format', '-Wno-format-security',
- '-Wno-format-nonliteral',
'-Wno-strict-aliasing', '-Wno-unused-but-set-variable',
'-Wno-unused-parameter',
]
and it builds fine on my f39.
The -Wformat-security caught my eye especially, because net/i40e is
the only driver silencing this warning while the whole DPDK tree is
built with it.
--
David Marchand
More information about the dev
mailing list