From: Dmitry V. Levin Date: Thu, 21 Apr 2016 20:41:38 +0000 (+0000) Subject: tests/fdatasync.c: print syscall() result using %ld format X-Git-Tag: v4.12~352 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02269e5da0fe92e472fbb81b5cbbea1cd29215dc;p=strace tests/fdatasync.c: print syscall() result using %ld format --- diff --git a/tests/fdatasync.c b/tests/fdatasync.c index 1923b500..1c11640d 100644 --- a/tests/fdatasync.c +++ b/tests/fdatasync.c @@ -11,10 +11,9 @@ int main(void) { const long int fd = (long int) 0xdeadbeefffffffff; - int rc = syscall(__NR_fdatasync, fd); - printf("fdatasync(%d) = %d %s (%m)\n", - (int) fd, rc, - errno2name()); + + long rc = syscall(__NR_fdatasync, fd); + printf("fdatasync(%d) = %ld %s (%m)\n", (int) fd, rc, errno2name()); puts("+++ exited with 0 +++"); return 0;