From 7f7df59b9900e2bbefe1d1a93c0562ea29f3980e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 19 Jan 2020 20:36:17 -0800 Subject: [PATCH] Fix some formatter types --- buffer.c | 3 ++- primary.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/buffer.c b/buffer.c index 917b168..f63fdfa 100644 --- a/buffer.c +++ b/buffer.c @@ -1740,7 +1740,8 @@ static HRESULT WINAPI DSBuffer_Unlock(IDirectSoundBuffer8 *iface, void *ptr1, DW out: if(hr != S_OK) - WARN("Invalid parameters (0x%lx,%lu) (%p,%lu,%p,%lu)\n", boundary, bufsize, ptr1, len1, ptr2, len2); + WARN("Invalid parameters (%p,%lu) (%p,%lu,%p,%lu)\n", (void*)boundary, bufsize, + ptr1, len1, ptr2, len2); return hr; } diff --git a/primary.c b/primary.c index 8774157..a070cf5 100644 --- a/primary.c +++ b/primary.c @@ -76,13 +76,13 @@ static void trigger_elapsed_notifies(DSBuffer *buf, DWORD lastpos, DWORD curpos) { if(ofs < curpos || ofs >= lastpos) { - TRACE("Triggering notification %d from buffer %p\n", not - buf->notify, buf); + TRACE("Triggering notification %d from buffer %p\n", (int)(not-buf->notify), buf); SetEvent(event); } } else if(ofs >= lastpos && ofs < curpos) /* Normal case */ { - TRACE("Triggering notification %d from buffer %p\n", not - buf->notify, buf); + TRACE("Triggering notification %d from buffer %p\n", (int)(not-buf->notify), buf); SetEvent(event); } } @@ -96,7 +96,7 @@ static void trigger_stop_notifies(DSBuffer *buf) { if(not->dwOffset != (DWORD)DSBPN_OFFSETSTOP) continue; - TRACE("Triggering notification %d from buffer %p\n", not - buf->notify, buf); + TRACE("Triggering notification %d from buffer %p\n", (int)(not-buf->notify), buf); SetEvent(not->hEventNotify); } } -- 2.11.4.GIT