summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLei Yang <Lei.Yang@windriver.com>2017-11-05 18:56:40 +0800
committerShuah Khan <shuahkh@osg.samsung.com>2017-11-15 08:07:53 -0700
commit7d33d2b5b8581ed9f7b2ad93156cde223df718dc (patch)
tree0c1ee46fb2beff30de2913524c5475a449c3423b /kernel
parent42534b1f58e04a5a6d245d4a8d25f7eb5fd79c7a (diff)
downloadop-kernel-dev-7d33d2b5b8581ed9f7b2ad93156cde223df718dc.zip
op-kernel-dev-7d33d2b5b8581ed9f7b2ad93156cde223df718dc.tar.gz
selftests: memfd_test.c: fix compilation warning.
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 <Lei.Yang@windriver.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud