projects
/
strace
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca24b94
)
tests/fsync.c: print syscall() result using %ld format
author
Dmitry V. Levin
<ldv@altlinux.org>
Thu, 21 Apr 2016 20:46:44 +0000
(20:46 +0000)
committer
Dmitry V. Levin
<ldv@altlinux.org>
Thu, 21 Apr 2016 22:05:55 +0000
(22:05 +0000)
tests/fsync.c
patch
|
blob
|
history
diff --git
a/tests/fsync.c
b/tests/fsync.c
index 3dcf101ee24f5840fcd8293dae2225a779d9c277..bd0cb1ea511af7ea07f09c7bce49f14897449379 100644
(file)
--- a/
tests/fsync.c
+++ b/
tests/fsync.c
@@
-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;