Skip to content

Commit

Permalink
improve poor debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Jan 29, 2024
1 parent 41d948b commit 742d9fc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/GSSocketStream.m
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,13 @@ - (void) stream: (NSStream*)stream issuer: (NSString*)i owner: (NSString*)o;
e = EAGAIN; // Tell GNUTLS this would block.
}
#if HAVE_GNUTLS_TRANSPORT_SET_ERRNO
gnutls_transport_set_errno (tls->session->session, e);
gnutls_transport_set_errno(tls->session->session, e);
#else
errno = e; // Not thread-safe
#endif

}
NSDebugFLLog(@"NSStream", @"GSTLSPush write %p of %u on %u",
[tls ostream], (unsigned)result, (unsigned)len);
NSDebugFLLog(@"NSStream", @"GSTLSPush to %p write %ld of %lu",
[tls ostream], (long)result, (unsigned long)len);
return result;
}

Expand Down

0 comments on commit 742d9fc

Please sign in to comment.