[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250225-torpedieren-bannen-9efd90dc7115@brauner>
Date: Tue, 25 Feb 2025 11:56:46 +0100
From: Christian Brauner <brauner@...nel.org>
To: Jeff Layton <jlayton@...nel.org>,
Arnd Bergmann <arnd@...nel.org>
Cc: Christian Brauner <brauner@...nel.org>,
Arnd Bergmann <arnd@...db.de>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] samples/vfs: fix printf format string for size_t
On Mon, 24 Feb 2025 15:14:00 +0100, Arnd Bergmann wrote:
> 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
>
> [...]
Applied to the vfs-6.15.mount branch of the vfs/vfs.git tree.
Patches in the vfs-6.15.mount branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-6.15.mount
[1/1] samples/vfs: fix printf format string for size_t
https://git.kernel.org/vfs/vfs/c/33cec19dc022
Powered by blists - more mailing lists