aboutsummaryrefslogtreecommitdiffstats
path: root/al/debug.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-06 22:47:13 -0700
committerChris Robinson <[email protected]>2023-05-06 22:47:13 -0700
commita33770fb69436bb644d673a70ace8de9546c0fbe (patch)
treea8846cb602351b6230810b3aa11c2b1b2ec406c5 /al/debug.cpp
parent2d0774d6a56fc43a54107beb128a26bd83d6101e (diff)
Include the message in the ERR log that's too long
Diffstat (limited to 'al/debug.cpp')
-rw-r--r--al/debug.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/al/debug.cpp b/al/debug.cpp
index a4b66ffb..77a9af05 100644
--- a/al/debug.cpp
+++ b/al/debug.cpp
@@ -180,14 +180,15 @@ void ALCcontext::sendDebugMessage(std::unique_lock<std::mutex> &debuglock, Debug
size_t newlen{std::strlen(message)};
if(newlen >= MaxDebugMessageLength) UNLIKELY
{
- ERR("Debug message too long (%zu >= %d)\n", newlen, MaxDebugMessageLength);
+ ERR("Debug message too long (%zu >= %d):\n-> %s\n", newlen, MaxDebugMessageLength,
+ message);
return;
}
length = static_cast<ALsizei>(newlen);
}
else if(length >= MaxDebugMessageLength) UNLIKELY
{
- ERR("Debug message too long (%d >= %d)\n", length, MaxDebugMessageLength);
+ ERR("Debug message too long (%d >= %d):\n-> %s\n", length, MaxDebugMessageLength, message);
return;
}