update/fix some debug log calls and add the test of XRDP_DEBUG to make files so controlled by the autoconf option --enable-xrdpdebug
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -144,9 +144,9 @@ xrdp_mcs_recv(struct xrdp_mcs *self, struct stream *s, int *chan)
|
||||
/* this is channels getting added from the client */
|
||||
if (appid == MCS_CJRQ)
|
||||
{
|
||||
g_writeln("channel join request received");
|
||||
in_uint16_be(s, userid);
|
||||
in_uint16_be(s, chanid);
|
||||
g_writeln("channel join request received %d:%d", userid, chanid);
|
||||
DEBUG(("xrdp_mcs_recv adding channel %4.4x", chanid));
|
||||
|
||||
if (xrdp_mcs_send_cjcf(self, userid, chanid) != 0)
|
||||
|
||||
+1
-1
@@ -454,7 +454,7 @@ xrdp_rdp_send_data(struct xrdp_rdp *self, struct stream *s,
|
||||
}
|
||||
else
|
||||
{
|
||||
g_writeln("mppc_encode not ok");
|
||||
g_writeln("mppc_encode not ok: type %d flags %d", mppc_enc->protocol_type, mppc_enc->flags);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user