[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191213123255.GW3929@twin.jikos.cz>
Date: Fri, 13 Dec 2019 13:32:55 +0100
From: David Sterba <dsterba@...e.cz>
To: Arnd Bergmann <arnd@...db.de>
Cc: Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
David Sterba <dsterba@...e.com>, Qu Wenruo <wqu@...e.com>,
Johannes Thumshirn <jthumshirn@...e.de>,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] btrfs: fix format string warning
On Tue, Dec 10, 2019 at 09:44:16PM +0100, Arnd Bergmann wrote:
> To print a size_t, the format string modifier %z should be used instead
> of %l:
>
> fs/btrfs/tree-checker.c: In function 'check_extent_data_item':
> fs/btrfs/tree-checker.c:230:43: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Werror=format=]
> "invalid item size, have %u expect [%lu, %u)",
> ~~^
> %u
>
> Fixes: 153a6d299956 ("btrfs: tree-checker: Check item size before reading file extent type")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Thanks, there's already fix for that in our devel queue, I'm going to
send it to the next rc.
Powered by blists - more mailing lists