Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Luo Yifan and committed by
Jakub Kicinski
a8c300cc f6fa7da1

+1 -1
+1 -1
tools/net/ynl/samples/page-pool.c
··· 118 118 name = if_indextoname(s->ifc, ifname); 119 119 if (name) 120 120 printf("%8s", name); 121 - printf("[%d]\t", s->ifc); 121 + printf("[%u]\t", s->ifc); 122 122 } 123 123 124 124 printf("page pools: %u (zombies: %u)\n",