diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-30 19:36:59 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-30 19:36:59 +0100 |
commit | 6ab1e8de9f953c789d5dd231a7d6e96f1ddfa8b1 (patch) | |
tree | a752f47b41173ba8df16c3e9a86c8604a76a3dec /tools | |
parent | Merge branch 'for-linus' of git://git.samba.org/sfrench/cifs-2.6 (diff) | |
parent | selftests/exec: Use %zu to format size_t (diff) | |
download | linux-6ab1e8de9f953c789d5dd231a7d6e96f1ddfa8b1.tar.xz linux-6ab1e8de9f953c789d5dd231a7d6e96f1ddfa8b1.zip |
Merge tag 'linux-kselftest-3.19-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fix from Shuah Khan:
"Fix exec test compile warnings"
* tag 'linux-kselftest-3.19-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
selftests/exec: Use %zu to format size_t
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/exec/execveat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/exec/execveat.c b/tools/testing/selftests/exec/execveat.c index 33a5c06d95ca..d273624c93a6 100644 --- a/tools/testing/selftests/exec/execveat.c +++ b/tools/testing/selftests/exec/execveat.c @@ -179,11 +179,11 @@ static int check_execveat_pathmax(int dot_dfd, const char *src, int is_script) */ fd = open(longpath, O_RDONLY); if (fd > 0) { - printf("Invoke copy of '%s' via filename of length %lu:\n", + printf("Invoke copy of '%s' via filename of length %zu:\n", src, strlen(longpath)); fail += check_execveat(fd, "", AT_EMPTY_PATH); } else { - printf("Failed to open length %lu filename, errno=%d (%s)\n", + printf("Failed to open length %zu filename, errno=%d (%s)\n", strlen(longpath), errno, strerror(errno)); fail++; } |