[core] Log data not processed in event loop

This commit is contained in:
Armin Novak 2022-11-16 16:19:28 +01:00 committed by akallabeth
parent ab5858376a
commit f5e4ca6f6a
2 changed files with 6 additions and 4 deletions

View File

@ -1155,8 +1155,9 @@ static state_run_t peer_recv_callback(rdpTransport* transport, wStream* s, void*
Stream_SetPosition(s, start);
rc = peer_recv_callback_internal(transport, s, extra);
WLog_VRB(TAG, "(server)[%s -> %s] current return %s", old, rdp_get_state_string(rdp),
state_run_result_string(rc, buffer, sizeof(buffer)));
WLog_VRB(TAG, "(server)[%s -> %s] current return %s [%" PRIuz " bytes not processed]", old,
rdp_get_state_string(rdp), state_run_result_string(rc, buffer, sizeof(buffer)),
Stream_GetRemainingLength(s));
} while ((rc == STATE_RUN_TRY_AGAIN) || (rc == STATE_RUN_CONTINUE) || (rc == STATE_RUN_ACTIVE));
return rc;

View File

@ -1984,8 +1984,9 @@ state_run_t rdp_recv_callback(rdpTransport* transport, wStream* s, void* extra)
Stream_SetPosition(s, start);
rc = rdp_recv_callback_int(transport, s, extra);
WLog_VRB(TAG, "(client)[%s -> %s] current return %s", old, rdp_get_state_string(rdp),
state_run_result_string(rc, buffer, sizeof(buffer)));
WLog_VRB(TAG, "(client)[%s -> %s] current return %s [%" PRIuz " bytes not processed]", old,
rdp_get_state_string(rdp), state_run_result_string(rc, buffer, sizeof(buffer)),
Stream_GetRemainingLength(s));
} while ((rc == STATE_RUN_TRY_AGAIN) || (rc == STATE_RUN_CONTINUE));
return rc;
}