Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: fix kcmp_test compile warnings

kcmp_test.c: In function ‘main’:
kcmp_test.c:85:5: warning: format ‘%li’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
ret, strerror(errno));
^

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Shuah Khan and committed by
Greg Kroah-Hartman
6e7e6c34 b80f5570

+1 -1
+1 -1
tools/testing/selftests/kcmp/kcmp_test.c
··· 81 81 /* Compare with self */ 82 82 ret = sys_kcmp(pid1, pid1, KCMP_VM, 0, 0); 83 83 if (ret) { 84 - printf("FAIL: 0 expected but %li returned (%s)\n", 84 + printf("FAIL: 0 expected but %d returned (%s)\n", 85 85 ret, strerror(errno)); 86 86 ret = -1; 87 87 } else