mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
improve poor debug log
This commit is contained in:
parent
41d948b5bb
commit
742d9fc843
1 changed files with 3 additions and 4 deletions
|
@ -456,14 +456,13 @@ GSTLSPush(gnutls_transport_ptr_t handle, const void *buffer, size_t len)
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue