Skip to content

Commit

Permalink
Add missing log prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Sep 5, 2024
1 parent 4be16f9 commit 26b2e13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ HRESULT STDMETHODCALLTYPE Buffer::SetFX(DWORD effectsCount, DSEFFECTDESC *dsFXDe
/* No effects, we can do that. */
if(dsFXDesc || resultCodes)
{
WARN("Non-null pointers for no effects (%p, %p)\n", voidp{dsFXDesc},
WARN(PREFIX "Non-null pointers for no effects (%p, %p)\n", voidp{dsFXDesc},
voidp{resultCodes});
return E_INVALIDARG;
}
Expand All @@ -1265,7 +1265,7 @@ HRESULT STDMETHODCALLTYPE Buffer::SetFX(DWORD effectsCount, DSEFFECTDESC *dsFXDe

if(!dsFXDesc)
{
WARN("Missing FX descriptions\n");
WARN(PREFIX "Missing FX descriptions\n");
return E_INVALIDARG;
}
const auto fxdescs = std::span{dsFXDesc, effectsCount};
Expand All @@ -1282,7 +1282,7 @@ HRESULT STDMETHODCALLTYPE Buffer::SetFX(DWORD effectsCount, DSEFFECTDESC *dsFXDe

std::for_each(fxdescs.begin(), fxdescs.end(), [](const DSEFFECTDESC &desc)
{
DEBUG("Unsupported effect: 0x%lx, %s\n", desc.dwFlags,
DEBUG(PREFIX "Unsupported effect: 0x%lx, %s\n", desc.dwFlags,
DsfxPrinter{desc.guidDSFXClass}.c_str());
});

Expand Down

0 comments on commit 26b2e13

Please sign in to comment.