lkml.org 
[lkml]   [2015]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/1 linux-next] btrfs: fix sizeof format specifier in btrfs_check_super_valid()
From
On Sat, Feb 14, 2015 at 1:10 PM, Fabian Frederick <fabf@skynet.be> wrote:
> This patch fixes mips compilation warning:

Actually it happens on all 32-bit platforms (where size_t is unsigned int).

> fs/btrfs/disk-io.c: In function 'btrfs_check_super_valid':
> fs/btrfs/disk-io.c:3927:21: warning: format '%lu' expects argument
> of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat]
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>

> ---
> fs/btrfs/disk-io.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
> index f79f385..639f266 100644
> --- a/fs/btrfs/disk-io.c
> +++ b/fs/btrfs/disk-io.c
> @@ -3921,7 +3921,7 @@ static int btrfs_check_super_valid(struct btrfs_fs_info *fs_info,
> }
> if (btrfs_super_sys_array_size(sb) < sizeof(struct btrfs_disk_key)
> + sizeof(struct btrfs_chunk)) {
> - printk(KERN_ERR "BTRFS: system chunk array too small %u < %lu\n",
> + printk(KERN_ERR "BTRFS: system chunk array too small %u < %zu\n",
> btrfs_super_sys_array_size(sb),
> sizeof(struct btrfs_disk_key)
> + sizeof(struct btrfs_chunk));

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds


\
 
 \ /
  Last update: 2015-02-22 12:41    [W:0.051 / U:3.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site