Skip to content

Commit f7754ab

Browse files
committed
Fix strace result code for recv()
1 parent 96abe91 commit f7754ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/sock/recv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ ssize_t recv(int fd, void *buf, size_t size, int flags) {
6666

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

0 commit comments

Comments
 (0)