From 844f7b794102500f78b14f1f1944fdf034123a94 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 4 Aug 2016 16:14:12 +0200 Subject: [PATCH] Made logging less verbose. --- libfreerdp/gdi/brush.c | 8 ++++---- libfreerdp/gdi/gfx.c | 11 +++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/libfreerdp/gdi/brush.c b/libfreerdp/gdi/brush.c index 18d39b5a8..686570de3 100644 --- a/libfreerdp/gdi/brush.c +++ b/libfreerdp/gdi/brush.c @@ -611,10 +611,10 @@ BOOL gdi_PatBlt(HGDI_DC hdc, UINT32 nXLeft, UINT32 nYLeft, UINT32 nWidth, UINT32 nHeight, DWORD rop, HGDI_DC hdcSrc, UINT32 nXSrc, UINT32 nYSrc) { - WLog_INFO(TAG, "%s [%s] x=%lu, y=%lu, w=%lu, h=%lu [x=%lu, y=%lu] %s %s", - __FUNCTION__, gdi_rop_to_string(rop), nXLeft, nYLeft, - nWidth, nHeight, nXSrc, nYSrc, hdc ? GetColorFormatName(hdc->format) : "NULL", - hdcSrc ? GetColorFormatName(hdcSrc->format) : "NULL"); + WLog_VRB(TAG, "%s [%s] x=%lu, y=%lu, w=%lu, h=%lu [x=%lu, y=%lu] %s %s", + __FUNCTION__, gdi_rop_to_string(rop), nXLeft, nYLeft, + nWidth, nHeight, nXSrc, nYSrc, hdc ? GetColorFormatName(hdc->format) : "NULL", + hdcSrc ? GetColorFormatName(hdcSrc->format) : "NULL"); if (!gdi_ClipCoords(hdc, &nXLeft, &nYLeft, &nWidth, &nHeight, NULL, NULL)) return TRUE; diff --git a/libfreerdp/gdi/gfx.c b/libfreerdp/gdi/gfx.c index b7d12707f..76c6fe383 100644 --- a/libfreerdp/gdi/gfx.c +++ b/libfreerdp/gdi/gfx.c @@ -581,6 +581,17 @@ static UINT gdi_SurfaceCommand(RdpgfxClientContext* context, UINT status = CHANNEL_RC_OK; rdpGdi* gdi = (rdpGdi*) context->custom; + if (!context || !cmd) + return ERROR_INVALID_PARAMETER; + + WLog_Print(gdi->log, WLOG_TRACE, + "surfaceId=%lu, codec=%lu, contextId=%lu, format=%s, " + "left=%lu, top=%lu, right=%lu, bottom=%lu, width=%lu, height=%lu " + "length=%lu, data=%p, extra=%p", + cmd->surfaceId, cmd->codecId, cmd->contextId, + GetColorFormatName(cmd->format), cmd->left, cmd->top, cmd->right, + cmd->bottom, cmd->width, cmd->height, cmd->length, cmd->data, cmd->extra); + switch (cmd->codecId) { case RDPGFX_CODECID_UNCOMPRESSED: