summaryrefslogtreecommitdiff
path: root/lib/gnutls_buffers.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-01-25 10:17:06 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-01-25 10:17:06 +0100
commit9a6363fab931fd24f2f7ef18e40c98dba0867aec (patch)
tree4767471a4aab75745590d4f6cf729fb02c795fb7 /lib/gnutls_buffers.c
parent5de4b3d1f6b2b68b35cb689a1c964f71a63134c1 (diff)
downloadgnutls-9a6363fab931fd24f2f7ef18e40c98dba0867aec.tar.gz
print errno in a more uniform way
Diffstat (limited to 'lib/gnutls_buffers.c')
-rw-r--r--lib/gnutls_buffers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c
index 4d0b3ad2c9..0641d888cd 100644
--- a/lib/gnutls_buffers.c
+++ b/lib/gnutls_buffers.c
@@ -265,9 +265,8 @@ _gnutls_dgram_read(gnutls_session_t session, mbuffer_st ** bufel,
if (i < 0) {
int err = get_errno(session);
- _gnutls_read_log
- ("READ: %d returned from %p, errno=%d gerrno=%d\n",
- (int) i, fd, errno, session->internals.errnum);
+ _gnutls_read_log("READ: %d returned from %p, errno=%d\n",
+ (int) i, fd, err);
ret = errno_to_gerr(err, 1);
goto cleanup;
@@ -496,7 +495,8 @@ _gnutls_writev(gnutls_session_t session, const giovec_t * giovec,
if (i == -1) {
int err = get_errno(session);
- _gnutls_debug_log("errno: %d\n", err);
+ _gnutls_debug_log("WRITE: %d returned from %p, errno: %d\n",
+ i, fd, err);
return errno_to_gerr(err, is_dtls);
}