From e43470da7a590ab026006a4f35caaff134c21455 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 20 Sep 2011 12:24:23 -0700 Subject: Make a separate log level to trace reference counts, to avoid log spam for traces --- Alc/ALc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Alc') diff --git a/Alc/ALc.c b/Alc/ALc.c index ff7df305..b5ac29d1 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -566,7 +566,7 @@ static void alc_initconfig(void) if(str) { long lvl = strtol(str, NULL, 0); - if(lvl >= NoLog && lvl <= LogTrace) + if(lvl >= NoLog && lvl <= LogRef) LogLevel = lvl; } @@ -1298,14 +1298,14 @@ void ALCdevice_IncRef(ALCdevice *device) { RefCount ref; ref = IncrementRef(&device->ref); - TRACE("%p increasing refcount to %u\n", device, ref); + TRACEREF("%p increasing refcount to %u\n", device, ref); } void ALCdevice_DecRef(ALCdevice *device) { RefCount ref; ref = DecrementRef(&device->ref); - TRACE("%p decreasing refcount to %u\n", device, ref); + TRACEREF("%p decreasing refcount to %u\n", device, ref); if(ref == 0) FreeDevice(device); } @@ -1471,14 +1471,14 @@ void ALCcontext_IncRef(ALCcontext *context) { RefCount ref; ref = IncrementRef(&context->ref); - TRACE("%p increasing refcount to %u\n", context, ref); + TRACEREF("%p increasing refcount to %u\n", context, ref); } void ALCcontext_DecRef(ALCcontext *context) { RefCount ref; ref = DecrementRef(&context->ref); - TRACE("%p decreasing refcount to %u\n", context, ref); + TRACEREF("%p decreasing refcount to %u\n", context, ref); if(ref == 0) FreeContext(context); } -- cgit v1.2.3