From: Dmitry V. Levin Date: Thu, 21 Apr 2016 21:33:43 +0000 (+0000) Subject: tests/xetpgid.c: print syscall() result using %ld format X-Git-Tag: v4.12~308 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8141093cd0ecbda3e91dbd7814b50c94a518c35c;p=strace tests/xetpgid.c: print syscall() result using %ld format --- diff --git a/tests/xetpgid.c b/tests/xetpgid.c index f6bf6406..59f8153d 100644 --- a/tests/xetpgid.c +++ b/tests/xetpgid.c @@ -40,14 +40,14 @@ int main(void) { const int pid = getpid(); - int rc = syscall(__NR_getpgid, - (unsigned long) 0xffffffff00000000 | pid); - printf("getpgid(%d) = %d\n", pid, rc); + long rc = syscall(__NR_getpgid, + (unsigned long) 0xffffffff00000000 | pid); + printf("getpgid(%d) = %ld\n", pid, rc); rc = syscall(__NR_setpgid, (unsigned long) 0xffffffff00000000, (unsigned long) 0xffffffff00000000 | pid); - printf("setpgid(0, %d) = %d\n", pid, rc); + printf("setpgid(0, %d) = %ld\n", pid, rc); puts("+++ exited with 0 +++"); return 0;