]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
ynl: samples: Fix the wrong format specifier
authorLuo Yifan <luoyifan@cmss.chinamobile.com>
Wed, 13 Nov 2024 01:11:42 +0000 (09:11 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Nov 2024 02:48:15 +0000 (18:48 -0800)
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>
tools/net/ynl/samples/page-pool.c

index 332f281ee5cb326cf9b01d7ace59fc7b998281d5..e5d521320fbf34281764145f101d90823bc630aa 100644 (file)
@@ -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",