Commit 6ab1e8de authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'linux-kselftest-3.19-fixes' of...

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
parents 5faa0154 6898b627
...@@ -179,11 +179,11 @@ static int check_execveat_pathmax(int dot_dfd, const char *src, int is_script) ...@@ -179,11 +179,11 @@ static int check_execveat_pathmax(int dot_dfd, const char *src, int is_script)
*/ */
fd = open(longpath, O_RDONLY); fd = open(longpath, O_RDONLY);
if (fd > 0) { 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)); src, strlen(longpath));
fail += check_execveat(fd, "", AT_EMPTY_PATH); fail += check_execveat(fd, "", AT_EMPTY_PATH);
} else { } 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)); strlen(longpath), errno, strerror(errno));
fail++; fail++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment