Skip to content

Commit

Permalink
Fix strace result code for recv()
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Sep 17, 2024
1 parent 96abe91 commit f7754ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/sock/recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ ssize_t recv(int fd, void *buf, size_t size, int flags) {

END_CANCELATION_POINT;
DATATRACE("recv(%d, [%#.*hhs%s], %'zu, %#x) → %'ld% lm", fd,
MAX(0, MIN(40, rc)), buf, rc > 40 ? "..." : "", size, flags);
MAX(0, MIN(40, rc)), buf, rc > 40 ? "..." : "", size, flags, rc);
return rc;
}

0 comments on commit f7754ab

Please sign in to comment.