summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2025-02-24 15:14:00 +0100
committerChristian Brauner <brauner@kernel.org>2025-02-25 11:56:26 +0100
commit33cec19dc022369e02f860150e5dfe32708016dc (patch)
tree392bf6e27fb3ae953f6d6da6702fa59b61f099b0 /security
parent7a54947e727b6df840780a66c970395ed9734ebe (diff)
downloadlinux-33cec19dc022369e02f860150e5dfe32708016dc.tar.gz
linux-33cec19dc022369e02f860150e5dfe32708016dc.tar.bz2
linux-33cec19dc022369e02f860150e5dfe32708016dc.zip
samples/vfs: fix printf format string for size_t
size_t needs a %z format string modifier instead of %l samples/vfs/test-list-all-mounts.c:152:39: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat] 152 | printf("mnt_uidmap[%lu]:\t%s\n", idx, idmap); | ~~~ ^~~ | %zu samples/vfs/test-list-all-mounts.c:161:39: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat] 161 | printf("mnt_gidmap[%lu]:\t%s\n", idx, idmap); | ~~~ ^~~ | %zu Fixes: fa204a65f1b6 ("samples/vfs: add STATMOUNT_MNT_{G,U}IDMAP") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20250224141406.1400864-1-arnd@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions