diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-30 13:36:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-30 13:36:59 -0500 |
commit | 6ab1e8de9f953c789d5dd231a7d6e96f1ddfa8b1 (patch) | |
tree | a752f47b41173ba8df16c3e9a86c8604a76a3dec /tools | |
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
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) | |||
179 | */ | 179 | */ |
180 | fd = open(longpath, O_RDONLY); | 180 | fd = open(longpath, O_RDONLY); |
181 | if (fd > 0) { | 181 | if (fd > 0) { |
182 | printf("Invoke copy of '%s' via filename of length %lu:\n", | 182 | printf("Invoke copy of '%s' via filename of length %zu:\n", |
183 | src, strlen(longpath)); | 183 | src, strlen(longpath)); |
184 | fail += check_execveat(fd, "", AT_EMPTY_PATH); | 184 | fail += check_execveat(fd, "", AT_EMPTY_PATH); |
185 | } else { | 185 | } else { |
186 | printf("Failed to open length %lu filename, errno=%d (%s)\n", | 186 | printf("Failed to open length %zu filename, errno=%d (%s)\n", |
187 | strlen(longpath), errno, strerror(errno)); | 187 | strlen(longpath), errno, strerror(errno)); |
188 | fail++; | 188 | fail++; |
189 | } | 189 | } |