Message ID | 20241113011142.290474-1-luoyifan@cmss.chinamobile.com (mailing list archive) |
---|---|
State | Accepted |
Commit | a8c300ccd2e7441f7209e5ee58918091fedb241f |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] ynl: samples: Fix the wrong format specifier | expand |
On Wed, Nov 13, 2024 at 09:11:42AM +0800, Luo Yifan wrote: > Make a minor change to eliminate a static checker warning. The type > of s->ifc is unsigned int, so the correct format specifier should be > %u instead of %d. > > Signed-off-by: Luo Yifan <luoyifan@cmss.chinamobile.com> Reviewed-by: Simon Horman <horms@kernel.org>
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Wed, 13 Nov 2024 09:11:42 +0800 you wrote: > Make a minor change to eliminate a static checker warning. The type > of s->ifc is unsigned int, so the correct format specifier should be > %u instead of %d. > > Signed-off-by: Luo Yifan <luoyifan@cmss.chinamobile.com> > --- > tools/net/ynl/samples/page-pool.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Here is the summary with links: - [net-next] ynl: samples: Fix the wrong format specifier https://git.kernel.org/netdev/net-next/c/a8c300ccd2e7 You are awesome, thank you!
diff --git a/tools/net/ynl/samples/page-pool.c b/tools/net/ynl/samples/page-pool.c index 332f281ee..e5d521320 100644 --- a/tools/net/ynl/samples/page-pool.c +++ b/tools/net/ynl/samples/page-pool.c @@ -118,7 +118,7 @@ int main(int argc, char **argv) name = if_indextoname(s->ifc, ifname); if (name) printf("%8s", name); - printf("[%d]\t", s->ifc); + printf("[%u]\t", s->ifc); } printf("page pools: %u (zombies: %u)\n",
Make a minor change to eliminate a static checker warning. The type of s->ifc is unsigned int, so the correct format specifier should be %u instead of %d. Signed-off-by: Luo Yifan <luoyifan@cmss.chinamobile.com> --- tools/net/ynl/samples/page-pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)