From 4c189ec3b488d7fb57966cce23ceb20dfa7a4cae Mon Sep 17 00:00:00 2001 From: LawrenceK Date: Thu, 20 Dec 2012 09:08:14 +0000 Subject: update/fix some debug log calls and add the test of XRDP_DEBUG to make files so controlled by the autoconf option --enable-xrdpdebug --- libxrdp/libxrdp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libxrdp/libxrdp.c') diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c index a391b93b..d4c9d372 100644 --- a/libxrdp/libxrdp.c +++ b/libxrdp/libxrdp.c @@ -744,6 +744,7 @@ libxrdp_query_channel(struct xrdp_session *session, int index, if (index < 0 || index >= count) { + DEBUG(("libxrdp_query_channel - Channel out of range %d", index)); return 1; } @@ -760,6 +761,7 @@ libxrdp_query_channel(struct xrdp_session *session, int index, if (channel_name != 0) { g_strncpy(channel_name, channel_item->name, 8); + DEBUG(("libxrdp_query_channel - Channel %d name %s", index, channel_name)); } if (channel_flags != 0) -- cgit v1.2.3