Explorar o código

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>
Shuah Khan %!s(int64=11) %!d(string=hai) anos
pai
achega
6e7e6c3484
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/testing/selftests/kcmp/kcmp_test.c

+ 1 - 1
tools/testing/selftests/kcmp/kcmp_test.c

@@ -81,7 +81,7 @@ int main(int argc, char **argv)
 		/* Compare with self */
 		/* Compare with self */
 		ret = sys_kcmp(pid1, pid1, KCMP_VM, 0, 0);
 		ret = sys_kcmp(pid1, pid1, KCMP_VM, 0, 0);
 		if (ret) {
 		if (ret) {
-			printf("FAIL: 0 expected but %li returned (%s)\n",
+			printf("FAIL: 0 expected but %d returned (%s)\n",
 				ret, strerror(errno));
 				ret, strerror(errno));
 			ret = -1;
 			ret = -1;
 		} else
 		} else