Made logging less verbose.
authorArmin Novak <armin.novak@thincast.com>
Thu, 4 Aug 2016 14:14:12 +0000 (16:14 +0200)
committerArmin Novak <armin.novak@thincast.com>
Thu, 6 Oct 2016 11:43:08 +0000 (13:43 +0200)
libfreerdp/gdi/brush.c
libfreerdp/gdi/gfx.c

index 18d39b5..686570d 100644 (file)
@@ -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;
index b7d1270..76c6fe3 100644 (file)
@@ -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: