From 338df2d9fac3a5c1f3dfe1619a44f7c68e9c57f9 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 23 Mar 2023 23:25:32 +0200 Subject: [PATCH] Better deadlock message --- Core/Lock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Lock.cpp b/Core/Lock.cpp index 6b59a06..0073ccc 100644 --- a/Core/Lock.cpp +++ b/Core/Lock.cpp @@ -25,7 +25,7 @@ void LockClass::DeadLock(SpinLockData Lock) if (CoreData != nullptr) CCore = CoreData->ID; - warn("Potential deadlock in lock '%s' held by '%s'! %ld %s in queue. Interrupts are %s. Core %ld is being held by %ld. (%ld times happened)", + warn("Potential deadlock in lock '%s' held by '%s'! %ld %s in queue. Interrupts are %s. Core %ld held by %ld. (%ld times happened)", Lock.AttemptingToGet, Lock.CurrentHolder, Lock.Count, Lock.Count > 1 ? "locks" : "lock", CPU::Interrupts(CPU::Check) ? "enabled" : "disabled", @@ -91,7 +91,7 @@ void LockClass::TimeoutDeadLock(SpinLockData Lock, uint64_t Timeout) uint64_t Counter = TimeManager->GetCounter(); - warn("Potential deadlock in lock '%s' held by '%s'! %ld %s in queue. Interrupts are %s. Core %ld is being held by %ld. Timeout in %ld (%ld ticks remaining).", + warn("Potential deadlock in lock '%s' held by '%s'! %ld %s in queue. Interrupts are %s. Core %ld held by %ld. Timeout in %ld (%ld ticks remaining).", Lock.AttemptingToGet, Lock.CurrentHolder, Lock.Count, Lock.Count > 1 ? "locks" : "lock", CPU::Interrupts(CPU::Check) ? "enabled" : "disabled",