Skip to content

Commit

Permalink
Updating documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexarian committed Jun 8, 2021
1 parent d98afc6 commit 5171f8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions libxrdp/xrdp_sec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2321,7 +2321,7 @@ libxrdp_process_monitor_stream(struct stream *s, struct display_size_description
const char *monitor_struct_stream_check_message;

in_uint32_le(s, num_monitor);
LOG(LOG_LEVEL_DEBUG, " num_monitor %d", num_monitor);
LOG(LOG_LEVEL_DEBUG, " The number of monitors received is: %d", num_monitor);

if (num_monitor >= CLIENT_MONITOR_DATA_MAXIMUM_MONITORS)
{
Expand All @@ -2338,12 +2338,12 @@ libxrdp_process_monitor_stream(struct stream *s, struct display_size_description
if (full_parameters == 0)
{
monitor_struct_stream_check_bytes = 20;
monitor_struct_stream_check_message = "\tprocess_monitor_stream: Parsing monitor definitions from 2.2.1.3.6.1 Monitor Definition (TS_MONITOR_DEF).";
monitor_struct_stream_check_message = "\tprocess_monitor_stream: Parsing monitor definitions from [MS-RDPBCGR] 2.2.1.3.6.1 Monitor Definition (TS_MONITOR_DEF).";
}
else
{
monitor_struct_stream_check_bytes = 40;
monitor_struct_stream_check_message = "\tprocess_monitor_stream: Parsing monitor definitions from 2.2.2.2.1 DISPLAYCONTROL_MONITOR_LAYOUT.";
monitor_struct_stream_check_message = "\tprocess_monitor_stream: Parsing monitor definitions from [MS-RDPEDISP] 2.2.2.2.1 DISPLAYCONTROL_MONITOR_LAYOUT.";
}

description->monitorCount = num_monitor;
Expand Down Expand Up @@ -2372,7 +2372,7 @@ libxrdp_process_monitor_stream(struct stream *s, struct display_size_description
/*
* 2.2.1.3.6.1 Monitor Definition (TS_MONITOR_DEF)
*/
LOG(LOG_LEVEL_TRACE, "\tprocess_monitor_stream: "
LOG_DEVEL(LOG_LEVEL_TRACE, "\tprocess_monitor_stream: "
"Received [MS-RDPBCGR] 2.2.1.3.6.1 TS_UD_CS_MONITOR.TS_MONITOR_DEF "
"Index: %d, Left %d, Top %d, Right %d, Bottom %d, Flags 0x%8.8x",
monitor_index,
Expand All @@ -2399,7 +2399,7 @@ libxrdp_process_monitor_stream(struct stream *s, struct display_size_description
/*
* 2.2.2.2.1 DISPLAYCONTROL_MONITOR_LAYOUT
*/
LOG(LOG_LEVEL_TRACE, "\tprocess_monitor_stream: "
LOG_DEVEL(LOG_LEVEL_TRACE, "\tprocess_monitor_stream: "
"Received [MS-RDPEDISP] 2.2.2.2.1 DISPLAYCONTROL_MONITOR_LAYOUT_PDU.DISPLAYCONTROL_MONITOR_LAYOUT "
"Index: %d, Flags 0x%8.8x, Left %d, Top %d, "
"Width %d, Height %d, PhysicalWidth %d, PhysicalHeight %d, "
Expand Down
2 changes: 1 addition & 1 deletion xrdp/xrdp_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ dynamic_monitor_data(intptr_t id, int chan_id, char *data, int bytes)
in_uint32_le(s, monitor_layout_size);
if (monitor_layout_size != 40)
{
LOG(LOG_LEVEL_ERROR, "\tdynamic_monitor_data: monitor_layout_size is %d. Per spec (2.2.2.2 DISPLAYCONTROL_MONITOR_LAYOUT_PDU) it must be 40.", monitor_layout_size);
LOG(LOG_LEVEL_ERROR, "\tdynamic_monitor_data: monitor_layout_size is %d. Per spec ([MS-RDPEDISP] 2.2.2.2 DISPLAYCONTROL_MONITOR_LAYOUT_PDU) it must be 40.", monitor_layout_size);
return 1;
}

Expand Down

0 comments on commit 5171f8e

Please sign in to comment.