Skip to content

Commit

Permalink
nfs_flock: Print errors to stderr
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Jul 21, 2023
1 parent 6b9c6b8 commit ac59f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testcases/network/nfs/nfslock01/nfs_flock.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int main(int argc, char **argv)
}

if (writeb_lock(fd, offset, SEEK_SET, nchars) < 0) {
printf("failed in writeb_lock, Errno = %d\n", errno);
fprintf(stderr, "failed in writeb_lock, errno = %d\n", errno);
exit(1);
}

Expand All @@ -102,7 +102,7 @@ int main(int argc, char **argv)
}

if (unb_lock(fd, offset, SEEK_SET, nchars) < 0) {
printf("failed in unb_lock, Errno = %d\n", errno);
fprintf(stderr, "failed in unb_lock, errno = %d\n", errno);
exit(1);
}
}
Expand Down

0 comments on commit ac59f20

Please sign in to comment.