tools: fix kcmp_test compile warnings
authorShuah Khan <shuah.kh@samsung.com>
Wed, 25 Jun 2014 00:11:26 +0000 (18:11 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 01:11:18 +0000 (18:11 -0700)
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>
tools/testing/selftests/kcmp/kcmp_test.c

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