tests/fsync.c: print syscall() result using %ld format
This commit is contained in:
parent
ca24b94652
commit
1717c8c06d
@ -11,10 +11,9 @@ int
|
||||
main(void)
|
||||
{
|
||||
const long int fd = (long int) 0xdeadbeefffffffff;
|
||||
int rc = syscall(__NR_fsync, fd);
|
||||
printf("fsync(%d) = %d %s (%m)\n",
|
||||
(int) fd, rc,
|
||||
errno2name());
|
||||
|
||||
long rc = syscall(__NR_fsync, fd);
|
||||
printf("fsync(%d) = %ld %s (%m)\n", (int) fd, rc, errno2name());
|
||||
|
||||
puts("+++ exited with 0 +++");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user