From 157ee90568a08e0310f6ceb0514e0600669603d1 Mon Sep 17 00:00:00 2001 From: thorkill Date: Mon, 29 Jun 2015 00:24:28 +0200 Subject: [PATCH] s_errno was nerver used --- src/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger.c b/src/logger.c index e46d926f..9c2786fd 100644 --- a/src/logger.c +++ b/src/logger.c @@ -131,7 +131,7 @@ static void sptps_logger(sptps_t *s, int s_errno, const char *format, va_list ap // but both types have the name and hostname fields at the same offsets. connection_t *c = s->handle; if(c) - snprintf(message + len, sizeof message - len, " from %s (%s)", c->name, c->hostname); + snprintf(message + len, sizeof message - len, " from %s (%s) [errno: %d]", c->name, c->hostname, s_errno); } real_logger(DEBUG_ALWAYS, LOG_ERR, message);