[PATCH 0/1] MR9167: mmdevapi/tests: Use wine_dbgstr_longlong().
Fixes compiler warnings on older systems. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9167
From: Sven Baars <sbaars(a)codeweavers.com> --- dlls/mmdevapi/tests/capture.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/mmdevapi/tests/capture.c b/dlls/mmdevapi/tests/capture.c index 8963ee97e05..88cb748a6be 100644 --- a/dlls/mmdevapi/tests/capture.c +++ b/dlls/mmdevapi/tests/capture.c @@ -305,7 +305,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx) /* GetBufferSize is not a multiple of the period size! */ hr = IAudioClient_GetBufferSize(ac, &buffer_size); ok(hr == S_OK, "GetBufferSize failed: %08lx\n", hr); - trace("GetBufferSize %u period size %llu\n", buffer_size, period); + trace("GetBufferSize %u period size %s\n", buffer_size, wine_dbgstr_longlong(period)); hr = IAudioClient_Start(ac); ok(hr == S_OK, "Start on a stopped stream returns %08lx\n", hr); @@ -320,8 +320,8 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx) * packets to arrive concurrently. */ hr = IAudioClient_GetCurrentPadding(ac, &padding); ok(hr == S_OK, "GetCurrentPadding returns %08lx\n", hr); - ok(padding <= 2 * period, "GetCurrentPadding %u is larger then twice the period %llu\n", - padding, period); + ok(padding <= 2 * period, "GetCurrentPadding %u is larger then twice the period %s\n", + padding, wine_dbgstr_longlong(period)); todo_wine ok(packets_data.discontinuity_at_0, "No discontinuity at first packet\n"); @@ -337,8 +337,8 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx) hr = IAudioClient_GetCurrentPadding(ac, &padding); ok(hr == S_OK, "GetCurrentPadding returns %08lx\n", hr); - ok(padding <= 2 * period, "GetCurrentPadding %u is larger then twice the period %llu\n", - padding, period); + ok(padding <= 2 * period, "GetCurrentPadding %u is larger then twice the period %s\n", + padding, wine_dbgstr_longlong(period)); ok(!packets_data.discontinuity_at_0, "Discontinuity at first packet\n"); ok(!packets_data.discontinuity_at_later, "Discontinuity at later packet\n"); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9167
I think we can now use %I64u (%#I64x, %I64d) for 64 bit values in the PE code (and %Iu for SIZE_T and friends). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9167#note_118394
participants (3)
-
Paul Gofman (@gofman) -
Sven Baars -
Sven Baars (@sbaars)