Dmitry Timoshkov : gdiplus/tests: Use trace instead of printf.

Alexandre Julliard julliard at winehq.org
Wed Nov 6 11:34:44 CST 2013


Module: wine
Branch: master
Commit: d4db49efc2cb999375889e1a3c99b9e6f01a72d5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d4db49efc2cb999375889e1a3c99b9e6f01a72d5

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Nov  6 11:45:54 2013 +0900

gdiplus/tests: Use trace instead of printf.

---

 dlls/gdiplus/tests/image.c |   54 ++++++++++++++++++++++----------------------
 1 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index 63d37cb..c4e61cc 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -3223,10 +3223,10 @@ static void test_tiff_properties(void)
             {
                 UINT j;
                 BYTE *data = prop_item->value;
-                printf("id %#x:", prop_item->id);
+                trace("id %#x:", prop_item->id);
                 for (j = 0; j < prop_item->length; j++)
-                    printf(" %02x", data[j]);
-                printf("\n");
+                    trace(" %02x", data[j]);
+                trace("\n");
             }
         }
         HeapFree(GetProcessHeap(), 0, prop_item);
@@ -3329,10 +3329,10 @@ static void test_GdipGetAllPropertyItems(void)
             {
                 UINT j;
                 BYTE *data = prop_item->value;
-                printf("id %#x:", prop_item->id);
+                trace("id %#x:", prop_item->id);
                 for (j = 0; j < prop_item->length; j++)
-                    printf(" %02x", data[j]);
-                printf("\n");
+                    trace(" %02x", data[j]);
+                trace("\n");
             }
         }
         HeapFree(GetProcessHeap(), 0, prop_item);
@@ -3391,10 +3391,10 @@ static void test_GdipGetAllPropertyItems(void)
             {
                 UINT j;
                 BYTE *data = prop_item[i].value;
-                printf("id %#x:", prop_item[i].id);
+                trace("id %#x:", prop_item[i].id);
                 for (j = 0; j < prop_item[i].length; j++)
-                    printf(" %02x", data[j]);
-                printf("\n");
+                    trace(" %02x", data[j]);
+                trace("\n");
             }
         }
         item_data += prop_item[i].length;
@@ -3623,10 +3623,10 @@ static void test_bitmapbits(void)
                 if (!match)
                 {
                     BYTE *bits = data.Scan0;
-                    printf("%u: data mismatch for format %#x:", i, td[i].format);
+                    trace("%u: data mismatch for format %#x:", i, td[i].format);
                     for (j = 0; j < td[i].size; j++)
-                        printf(" %02x", bits[j]);
-                    printf("\n");
+                        trace(" %02x", bits[j]);
+                    trace("\n");
                 }
             }
             else
@@ -3654,10 +3654,10 @@ static void test_bitmapbits(void)
             {
                 UINT j;
                 BYTE *bits = data.Scan0;
-                printf("%u: data mismatch for format %#x:", i, td[i].format);
+                trace("%u: data mismatch for format %#x:", i, td[i].format);
                 for (j = 0; j < 48; j++)
-                    printf(" %02x", bits[j]);
-                printf("\n");
+                    trace(" %02x", bits[j]);
+                trace("\n");
             }
         }
 
@@ -3709,8 +3709,8 @@ static void test_DrawImage(void)
         UINT i, size = sizeof(white_2x2);
         BYTE *bits = white_2x2;
         for (i = 0; i < size; i++)
-            printf(" %02x", bits[i]);
-        printf("\n");
+            trace(" %02x", bits[i]);
+        trace("\n");
     }
 
     status = GdipDeleteGraphics(graphics);
@@ -3761,8 +3761,8 @@ static void test_GdipDrawImagePointRect(void)
         UINT i, size = sizeof(white_2x2);
         BYTE *bits = white_2x2;
         for (i = 0; i < size; i++)
-            printf(" %02x", bits[i]);
-        printf("\n");
+            trace(" %02x", bits[i]);
+        trace("\n");
     }
 
     status = GdipDeleteGraphics(graphics);
@@ -3968,8 +3968,8 @@ static void test_DrawImage_scale(void)
             UINT i, size = sizeof(dst_8x1);
             const BYTE *bits = dst_8x1;
             for (i = 0; i < size; i++)
-                printf(" %02x", bits[i]);
-            printf("\n");
+                trace(" %02x", bits[i]);
+            trace("\n");
         }
     }
 
@@ -4094,10 +4094,10 @@ static void test_gif_properties(void)
             {
                 UINT j;
                 BYTE *data = prop_item->value;
-                printf("id %#x:", prop_item->id);
+                trace("id %#x:", prop_item->id);
                 for (j = 0; j < prop_item->length; j++)
-                    printf(" %02x", data[j]);
-                printf("\n");
+                    trace(" %02x", data[j]);
+                trace("\n");
             }
         }
         HeapFree(GetProcessHeap(), 0, prop_item);
@@ -4156,10 +4156,10 @@ static void test_gif_properties(void)
             {
                 UINT j;
                 BYTE *data = prop_item[i].value;
-                printf("id %#x:", prop_item[i].id);
+                trace("id %#x:", prop_item[i].id);
                 for (j = 0; j < prop_item[i].length; j++)
-                    printf(" %02x", data[j]);
-                printf("\n");
+                    trace(" %02x", data[j]);
+                trace("\n");
             }
         }
         item_data += prop_item[i].length;




More information about the wine-cvs mailing list