mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
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>
This commit is contained in:
parent
f6fa7da1d1
commit
a8c300ccd2
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user