2017-11-09 20:16:20

by Shuah Khan

[permalink] [raw]
Subject: Re: [PATCH] selftests: memfd_test.c: fix compilation warning.

On 11/05/2017 03:56 AM, Lei Yang wrote:
> Replace '%d' by '%zu' to fix the following compilation warning.
>
> memfd_test.c:517:3: warning: format ‘%d’ expects argument of
> type ‘int’,but argument 2 has type ‘size_t’ [-Wformat=]
> printf("malloc(%d) failed: %m\n", mfd_def_size * 8);
> ^
> memfd_test.c: In function ‘mfd_fail_grow_write’:
> memfd_test.c:537:3: warning: format ‘%d’ expects argument
> of type ‘int’,but argument 2 has type ‘size_t’ [-Wformat=]
> printf("malloc(%d) failed: %m\n", mfd_def_size * 8);
>
> Signed-off-by: Lei Yang <[email protected]>

Thanks for the patch. Applied to linux-kselftest next for 4.15-rc1

-- Shuah

From 1583483008089804765@xxx Wed Nov 08 07:44:35 +0000 2017
X-GM-THRID: 1583223412588596189
X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread