]> granicus.if.org Git - strace/commitdiff
tests/fdatasync.c: print syscall() result using %ld format
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Apr 2016 20:41:38 +0000 (20:41 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Apr 2016 20:52:42 +0000 (20:52 +0000)
tests/fdatasync.c

index 1923b5000c3f4bb1498d743c925170e062369a83..1c11640dd3a85cd03187142f9238d2d630a78d1d 100644 (file)
@@ -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;