From 48c9e183a0dad77a318aca334f3fa12af2ac1847 Mon Sep 17 00:00:00 2001 From: ArvidNorr Date: Fri, 1 Feb 2013 10:53:37 +0100 Subject: [PATCH 1/2] freeRDP Connection status to log --- freerdp1/xrdp-freerdp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/freerdp1/xrdp-freerdp.c b/freerdp1/xrdp-freerdp.c index c690b083..a4ef8e19 100644 --- a/freerdp1/xrdp-freerdp.c +++ b/freerdp1/xrdp-freerdp.c @@ -22,6 +22,7 @@ #include "xrdp-freerdp.h" #include "xrdp-color.h" #include "xrdp_rail.h" +#include "log.h" #ifdef XRDP_DEBUG #define LOG_LEVEL 99 @@ -146,13 +147,18 @@ lxrdp_connect(struct mod *mod) break; } } - + log_message(LOG_LEVEL_INFO,buf); mod->server_msg(mod, buf, 0); } #endif + log_message(LOG_LEVEL_INFO,"freerdp_connect Failed to destination :%s:%d",mod->inst->settings->ServerHostname,mod->inst->settings->ServerPort); return 1; } + else + { + log_message(LOG_LEVEL_INFO,"freerdp_connect returned Success to destination :%s:%d",mod->inst->settings->ServerHostname,mod->inst->settings->ServerPort); + } return 0; } From f3d795049ea337c6cbb49d36367cfc03d26a1e28 Mon Sep 17 00:00:00 2001 From: ArvidNorr Date: Fri, 1 Feb 2013 10:57:44 +0100 Subject: [PATCH 2/2] layoutfix --- freerdp1/xrdp-freerdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freerdp1/xrdp-freerdp.c b/freerdp1/xrdp-freerdp.c index a4ef8e19..ca4fe31f 100644 --- a/freerdp1/xrdp-freerdp.c +++ b/freerdp1/xrdp-freerdp.c @@ -157,7 +157,7 @@ lxrdp_connect(struct mod *mod) } else { - log_message(LOG_LEVEL_INFO,"freerdp_connect returned Success to destination :%s:%d",mod->inst->settings->ServerHostname,mod->inst->settings->ServerPort); + log_message(LOG_LEVEL_INFO,"freerdp_connect returned Success to destination :%s:%d",mod->inst->settings->ServerHostname,mod->inst->settings->ServerPort); } return 0;