diff --git a/cunit/test_freerdp.c b/cunit/test_freerdp.c index 636da91c9..d426635e2 100644 --- a/cunit/test_freerdp.c +++ b/cunit/test_freerdp.c @@ -37,6 +37,8 @@ #include "test_mppc.h" #include "test_mppc_enc.h" +#define TAG __FILE__ + void dump_data(unsigned char * p, int len, int width, char* name) { unsigned char *line = p; @@ -77,10 +79,10 @@ void assert_stream(wStream* s, BYTE* data, int length, const char* func, int lin printf("\n %s (%d): length mismatch, actual:%d, expected:%d\n", func, line, actual_length, length); printf("\nActual:\n"); - winpr_HexDump(actual_data, actual_length); + winpr_HexDump(TAG, WLOG_ERR, actual_data, actual_length); printf("Expected:\n"); - winpr_HexDump(data, length); + winpr_HexDump(TAG, WLOG_ERR, data, length); CU_FAIL("assert_stream, length mismatch"); return; @@ -93,10 +95,10 @@ void assert_stream(wStream* s, BYTE* data, int length, const char* func, int lin printf("\n %s (%d): buffer mismatch:\n", func, line); printf("\nActual:\n"); - winpr_HexDump(actual_data, length); + winpr_HexDump(TAG, WLOG_ERR, actual_data, length); printf("Expected:\n"); - winpr_HexDump(data, length); + winpr_HexDump(TAG, WLOG_ERR, data, length); CU_FAIL("assert_stream, buffer mismatch"); return; diff --git a/libfreerdp/codec/test/TestFreeRDPCodecProgressive.c b/libfreerdp/codec/test/TestFreeRDPCodecProgressive.c index 03533d2c1..858254d76 100644 --- a/libfreerdp/codec/test/TestFreeRDPCodecProgressive.c +++ b/libfreerdp/codec/test/TestFreeRDPCodecProgressive.c @@ -2,6 +2,7 @@ #include #include #include +#include #include @@ -934,8 +935,8 @@ int test_progressive_decode(PROGRESSIVE_CONTEXT* progressive, EGFX_SAMPLE_FILE f printf("Actual, Expected (offset: %d diff: %d/%d = %.3f%%):\n", cmp, cnt, size, rate); - winpr_HexDump(&g_DstData[cmp], 16); - winpr_HexDump(&bitmaps[pass].buffer[cmp], 16); + winpr_HexDump(__FILE__, WLOG_ERROR, &g_DstData[cmp], 16); + winpr_HexDump(__FILE__, WLOG_ERROR, &bitmaps[pass].buffer[cmp], 16); } //WLog_Image(progressive->log, WLOG_TRACE, g_DstData, g_Width, g_Height, 32); diff --git a/libfreerdp/primitives/test/TestPrimitivesYCbCr.c b/libfreerdp/primitives/test/TestPrimitivesYCbCr.c index 0a1301ec5..f6c3323df 100644 --- a/libfreerdp/primitives/test/TestPrimitivesYCbCr.c +++ b/libfreerdp/primitives/test/TestPrimitivesYCbCr.c @@ -2,11 +2,14 @@ #include "prim_test.h" #include +#include #ifdef HAVE_CONFIG_H #include "config.h" #endif +#define TAG __FILE__ + static INT16 TEST_Y_COMPONENT[4096] = { -32, +16, +64, +272, -32, -16, +0, -16, @@ -2172,8 +2175,8 @@ int TestPrimitivesYCbCr(int argc, char* argv[]) printf("Actual, Expected (offset: %d diff: %d/%d = %d%%):\n", cmp, cnt, size, (int) rate); - winpr_HexDump(&actual[cmp], 16); - winpr_HexDump(&expected[cmp], 16); + winpr_HexDump(TAG, WLOG_ERROR, &actual[cmp], 16); + winpr_HexDump(TAG, WLOG_ERROR, &expected[cmp], 16); } _aligned_free(actual);