mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
selftests/exec: Use %zu to format size_t
On 32-bit: execveat.c: In function 'check_execveat_pathmax': execveat.c:183: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t' execveat.c:187: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'size_t' Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
This commit is contained in:
parent
97bf6af1f9
commit
6898b627aa
1 changed files with 2 additions and 2 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue