aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-04 01:37:36 -0700
committerChris Robinson <[email protected]>2019-06-04 01:37:36 -0700
commit4522a51ea21813de9a59dd059c50f85d8a5116f1 (patch)
treedc41f36517a4ec6236c56b375eb37eadee8bf2e6 /Alc/alc.cpp
parentf0bc9d8a9b45a86cf0736a3f118b28ae6fdb90f0 (diff)
Don't log the function or prefix
It's ultimately unnecessary since the message is an indicator about where it was logged from. The message itself is generally more important than where it was from, too.
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 6ade082e..8378673d 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -811,7 +811,7 @@ std::atomic<ALCenum> LastNullDeviceError{ALC_NO_ERROR};
void ReleaseThreadCtx(ALCcontext *context)
{
auto ref = DecrementRef(&context->ref);
- TRACEREF("%p decreasing refcount to %u\n", context, ref);
+ TRACEREF("ALCcontext %p decreasing refcount to %u\n", context, ref);
ERR("Context %p current for thread being destroyed, possible leak!\n", context);
}
@@ -2206,7 +2206,7 @@ ALCdevice::ALCdevice(DeviceType type) : Type{type}
*/
ALCdevice::~ALCdevice()
{
- TRACE("%p\n", this);
+ TRACE("Freeing device %p\n", this);
Backend = nullptr;
@@ -2240,13 +2240,13 @@ ALCdevice::~ALCdevice()
static void ALCdevice_IncRef(ALCdevice *device)
{
auto ref = IncrementRef(&device->ref);
- TRACEREF("%p increasing refcount to %u\n", device, ref);
+ TRACEREF("ALCdevice %p increasing refcount to %u\n", device, ref);
}
static void ALCdevice_DecRef(ALCdevice *device)
{
auto ref = DecrementRef(&device->ref);
- TRACEREF("%p decreasing refcount to %u\n", device, ref);
+ TRACEREF("ALCdevice %p decreasing refcount to %u\n", device, ref);
if(UNLIKELY(ref == 0)) delete device;
}
@@ -2370,7 +2370,7 @@ static ALvoid InitContext(ALCcontext *Context)
*/
ALCcontext::~ALCcontext()
{
- TRACE("%p\n", this);
+ TRACE("Freeing context %p\n", this);
ALcontextProps *cprops{Update.exchange(nullptr, std::memory_order_relaxed)};
if(cprops)
@@ -2533,13 +2533,13 @@ static bool ReleaseContext(ALCcontext *context, ALCdevice *device)
static void ALCcontext_IncRef(ALCcontext *context)
{
auto ref = IncrementRef(&context->ref);
- TRACEREF("%p increasing refcount to %u\n", context, ref);
+ TRACEREF("ALCcontext %p increasing refcount to %u\n", context, ref);
}
void ALCcontext_DecRef(ALCcontext *context)
{
auto ref = DecrementRef(&context->ref);
- TRACEREF("%p decreasing refcount to %u\n", context, ref);
+ TRACEREF("ALCcontext %p decreasing refcount to %u\n", context, ref);
if(UNLIKELY(ref == 0)) delete context;
}