From: Jacek Caban jacek@codeweavers.com
Fixes Clang warning on 32-bit platforms. --- dlls/d3dx9_36/tests/xfile.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/dlls/d3dx9_36/tests/xfile.c b/dlls/d3dx9_36/tests/xfile.c index 0a40e4fbb60..8ce2c17f875 100644 --- a/dlls/d3dx9_36/tests/xfile.c +++ b/dlls/d3dx9_36/tests/xfile.c @@ -266,10 +266,10 @@ static void process_data(ID3DXFileData *xfile_data, int level) ok(ret == S_OK, "IDirectXFileData_Lock failed with %#lx\n", ret);
for (i = 0; i < level; i++) - printf(" "); + trace(" ");
- printf("Found object '%s' - %s - %s - %Iu\n", - len ? name : "", wine_dbgstr_guid(&clsid), wine_dbgstr_guid(&clsid_type), size); + trace("Found object '%s' - %s - %s - %Iu\n", + len ? name : "", wine_dbgstr_guid(&clsid), wine_dbgstr_guid(&clsid_type), size);
if (size) { @@ -277,10 +277,10 @@ static void process_data(ID3DXFileData *xfile_data, int level) for (j = 0; j < size; j++) { if (j && !(j%16)) - printf("\n"); - printf("%02x ", data[j]); + trace("\n"); + trace("%02x ", data[j]); } - printf("\n"); + trace("\n"); }
ret = xfile_data->lpVtbl->Unlock(xfile_data); @@ -299,11 +299,11 @@ static void process_data(ID3DXFileData *xfile_data, int level) ret = xfile_data->lpVtbl->GetChild(xfile_data, i, &child); ok(ret == S_OK, "ID3DXFileData_GetChild failed with %#lx\n", ret); for (j = 0; j < level; j++) - printf(" "); + trace(" "); if (child->lpVtbl->IsReference(child)) - printf("Found Data Reference (%d)\n", i + 1); + trace("Found Data Reference (%d)\n", i + 1); else - printf("Found Data (%d)\n", i + 1); + trace("Found Data (%d)\n", i + 1);
process_data(child, level);
@@ -343,7 +343,7 @@ static void test_dump(void) goto exit; }
- printf("Load templates file (%lu bytes)\n", size); + trace("Load templates file (%lu bytes)\n", size);
ret = D3DXFileCreate(&xfile); ok(ret == S_OK, "D3DXCreateFile failed with %#lx\n", ret); @@ -362,7 +362,7 @@ static void test_dump(void) ID3DXFileData *child; ret = xfile_enum_object->lpVtbl->GetChild(xfile_enum_object, i, &child); ok(ret == S_OK, "ID3DXFileEnumObject_GetChild failed with %#lx\n", ret); - printf("\n"); + trace("\n"); process_data(child, 0); child->lpVtbl->Release(child); }