mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Better deadlock message
This commit is contained in:
parent
14bd4e1b96
commit
338df2d9fa
@ -25,7 +25,7 @@ void LockClass::DeadLock(SpinLockData Lock)
|
|||||||
if (CoreData != nullptr)
|
if (CoreData != nullptr)
|
||||||
CCore = CoreData->ID;
|
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.AttemptingToGet, Lock.CurrentHolder,
|
||||||
Lock.Count, Lock.Count > 1 ? "locks" : "lock",
|
Lock.Count, Lock.Count > 1 ? "locks" : "lock",
|
||||||
CPU::Interrupts(CPU::Check) ? "enabled" : "disabled",
|
CPU::Interrupts(CPU::Check) ? "enabled" : "disabled",
|
||||||
@ -91,7 +91,7 @@ void LockClass::TimeoutDeadLock(SpinLockData Lock, uint64_t Timeout)
|
|||||||
|
|
||||||
uint64_t Counter = TimeManager->GetCounter();
|
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.AttemptingToGet, Lock.CurrentHolder,
|
||||||
Lock.Count, Lock.Count > 1 ? "locks" : "lock",
|
Lock.Count, Lock.Count > 1 ? "locks" : "lock",
|
||||||
CPU::Interrupts(CPU::Check) ? "enabled" : "disabled",
|
CPU::Interrupts(CPU::Check) ? "enabled" : "disabled",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user