aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/exec/execveat.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/exec/execveat.c')
-rw-r--r--tools/testing/selftests/exec/execveat.c4
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 }