From ec8b56ef3bae5bff16b93b08f9c6cab11b7e53b2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 8 Sep 2019 00:59:10 -0700 Subject: Remove unneeded TRACEREF logging --- alc/hrtf.cpp | 4 ++-- alc/logging.h | 5 ----- docs/env-vars.txt | 3 --- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index c0e2b982..5a39f686 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -1373,13 +1373,13 @@ HrtfEntry *GetLoadedHrtf(HrtfHandle *handle) void HrtfEntry::IncRef() { auto ref = IncrementRef(this->ref); - TRACEREF("HrtfEntry %p increasing refcount to %u\n", this, ref); + TRACE("HrtfEntry %p increasing refcount to %u\n", this, ref); } void HrtfEntry::DecRef() { auto ref = DecrementRef(this->ref); - TRACEREF("HrtfEntry %p decreasing refcount to %u\n", this, ref); + TRACE("HrtfEntry %p decreasing refcount to %u\n", this, ref); if(ref == 0) { std::lock_guard _{LoadedHrtfLock}; diff --git a/alc/logging.h b/alc/logging.h index 8a3e75e6..24cfda71 100644 --- a/alc/logging.h +++ b/alc/logging.h @@ -38,11 +38,6 @@ enum LogLevel { }; extern LogLevel gLogLevel; -#define TRACEREF(...) do { \ - if UNLIKELY(gLogLevel >= LogRef) \ - AL_PRINT("(--)", __VA_ARGS__); \ -} while(0) - #define TRACE(...) do { \ if UNLIKELY(gLogLevel >= LogTrace) \ AL_PRINT("(II)", __VA_ARGS__); \ diff --git a/docs/env-vars.txt b/docs/env-vars.txt index a973ee81..2b8d5e4d 100644 --- a/docs/env-vars.txt +++ b/docs/env-vars.txt @@ -11,9 +11,6 @@ Specifies the amount of logging OpenAL Soft will write out: 1 - Prints out errors only 2 - Prints out warnings and errors 3 - Prints out additional information, as well as warnings and errors -4 - Same as 3, but also device and context reference count changes. This will - print out *a lot* of info, and is generally not useful unless you're trying - to track a reference leak within the library. ALSOFT_LOGFILE Specifies a filename that logged output will be written to. Note that the file -- cgit v1.2.3