From 06b609062de2713258164dd09a6a7c233bfe10a6 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 15 Sep 2014 09:01:05 +0200 Subject: [PATCH] Removed remaining printf and DEBUG_* usages. --- client/Windows/wf_gdi.c | 2 +- libfreerdp/cache/bitmap.c | 4 +++- libfreerdp/gdi/gdi.c | 2 +- libfreerdp/gdi/gfx.c | 11 +++++++---- libfreerdp/gdi/graphics.c | 2 ++ 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/client/Windows/wf_gdi.c b/client/Windows/wf_gdi.c index 408837d16..95f90678d 100644 --- a/client/Windows/wf_gdi.c +++ b/client/Windows/wf_gdi.c @@ -419,7 +419,7 @@ void wf_gdi_bitmap_update(rdpContext* context, BITMAP_UPDATE* bitmapUpdate) if (status < 0) { - DEBUG_WARN("wf_gdi_bitmap_update: bitmap decompression failure\n"); + WLog_ERR(TAG, "bitmap decompression failure"); return; } diff --git a/libfreerdp/cache/bitmap.c b/libfreerdp/cache/bitmap.c index e5571fc43..6a62a3778 100644 --- a/libfreerdp/cache/bitmap.c +++ b/libfreerdp/cache/bitmap.c @@ -29,9 +29,11 @@ #include #include -#include +#include #include +#define TAG FREERDP_TAG("cache.bitmap") + void update_gdi_memblt(rdpContext* context, MEMBLT_ORDER* memblt) { rdpBitmap* bitmap; diff --git a/libfreerdp/gdi/gdi.c b/libfreerdp/gdi/gdi.c index c01a0deed..a7a7db4b3 100644 --- a/libfreerdp/gdi/gdi.c +++ b/libfreerdp/gdi/gdi.c @@ -563,7 +563,7 @@ void gdi_bitmap_update(rdpContext* context, BITMAP_UPDATE* bitmapUpdate) if (status < 0) { - DEBUG_WARN("gdi_bitmap_update: bitmap decompression failure\n"); + WLog_ERR(TAG, "bitmap decompression failure"); return; } diff --git a/libfreerdp/gdi/gfx.c b/libfreerdp/gdi/gfx.c index 5b7638aeb..b7cff01fa 100644 --- a/libfreerdp/gdi/gfx.c +++ b/libfreerdp/gdi/gfx.c @@ -21,9 +21,12 @@ #include "config.h" #endif +#include #include #include +#define TAG FREERDP_TAG("gdi") + int gdi_ResetGraphics(RdpgfxClientContext* context, RDPGFX_RESET_GRAPHICS_PDU* resetGraphics) { rdpGdi* gdi = (rdpGdi*) context->custom; @@ -259,7 +262,7 @@ int gdi_SurfaceCommand_ClearCodec(rdpGdi* gdi, RdpgfxClientContext* context, RDP if (status < 0) { - printf("clear_decompress failure: %d\n", status); + WLog_ERR(TAG, "clear_decompress failure: %d", status); return -1; } @@ -342,7 +345,7 @@ int gdi_SurfaceCommand_H264(rdpGdi* gdi, RdpgfxClientContext* context, RDPGFX_SU if (status < 0) { - printf("h264_decompress failure: %d\n",status); + WLog_ERR(TAG, "h264_decompress failure: %d",status); return -1; } @@ -370,7 +373,7 @@ int gdi_SurfaceCommand_Alpha(rdpGdi* gdi, RdpgfxClientContext* context, RDPGFX_S if (!surface) return -1; - printf("gdi_SurfaceCommand_Alpha: status: %d\n", status); + WLog_DBG(TAG, "gdi_SurfaceCommand_Alpha: status: %d", status); /* fill with green for now to distinguish from the rest */ @@ -425,7 +428,7 @@ int gdi_SurfaceCommand_Progressive(rdpGdi* gdi, RdpgfxClientContext* context, RD if (status < 0) { - printf("progressive_decompress failure: %d\n", status); + WLog_ERR(TAG, "progressive_decompress failure: %d", status); return -1; } diff --git a/libfreerdp/gdi/graphics.c b/libfreerdp/gdi/graphics.c index 179f5aaa8..3ed1c56da 100644 --- a/libfreerdp/gdi/graphics.c +++ b/libfreerdp/gdi/graphics.c @@ -23,6 +23,7 @@ #include +#include #include #include #include @@ -40,6 +41,7 @@ #include "graphics.h" +#define TAG FREERDP_TAG("gdi") /* Bitmap Class */ HGDI_BITMAP gdi_create_bitmap(rdpGdi* gdi, int width, int height, int bpp, BYTE* data)