summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuo Yifan <luoyifan@cmss.chinamobile.com>2024-11-13 02:11:42 +0100
committerJakub Kicinski <kuba@kernel.org>2024-11-14 03:48:15 +0100
commita8c300ccd2e7441f7209e5ee58918091fedb241f (patch)
treeb426fa70b1aec8a5490eda8d968baaca9d24a890
parentMerge branch 'tools-ynl-two-patches-to-ease-building-with-rpmbuild' (diff)
downloadlinux-a8c300ccd2e7441f7209e5ee58918091fedb241f.tar.xz
linux-a8c300ccd2e7441f7209e5ee58918091fedb241f.zip
ynl: samples: Fix the wrong format specifier
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> Link: https://patch.msgid.link/20241113011142.290474-1-luoyifan@cmss.chinamobile.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--tools/net/ynl/samples/page-pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/ynl/samples/page-pool.c b/tools/net/ynl/samples/page-pool.c
index 332f281ee5cb..e5d521320fbf 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",