diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-30 10:36:59 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-30 10:36:59 -0800 |
commit | 6ab1e8de9f953c789d5dd231a7d6e96f1ddfa8b1 (patch) | |
tree | a752f47b41173ba8df16c3e9a86c8604a76a3dec | |
parent | 5faa0154fe333e11ae3826296e08eada1d1d2ec8 (diff) | |
parent | 6898b627aab6ba553e6d8b40a0b1ddc43c48d42f (diff) |
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
-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 33a5c06d95c..d273624c93a 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++; } |