tests/fdatasync.c: print syscall() result using %ld format

This commit is contained in:
Дмитрий Левин 2016-04-21 20:41:38 +00:00
parent 3fc6bd96d8
commit 02269e5da0

View 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;