From db77549502d1c47da90ce639bd067a823320b7f8 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 30 Sep 2017 16:14:59 +0200 Subject: [PATCH] Show event name when scheduling from wrong thread --- Source/Core/Core/CoreTiming.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/CoreTiming.cpp b/Source/Core/Core/CoreTiming.cpp index 3da6bc12d34d..a4080108a32d 100644 --- a/Source/Core/Core/CoreTiming.cpp +++ b/Source/Core/Core/CoreTiming.cpp @@ -241,7 +241,8 @@ void ScheduleEvent(s64 cycles_into_future, EventType* event_type, u64 userdata, { from_cpu_thread = from == FromThread::CPU; _assert_msg_(POWERPC, from_cpu_thread == Core::IsCPUThread(), - "ScheduleEvent from wrong thread (%s)", from_cpu_thread ? "CPU" : "non-CPU"); + "A \"%s\" event was scheduled from the wrong thread (%s)", + event_type->name->c_str(), from_cpu_thread ? "CPU" : "non-CPU"); } if (from_cpu_thread)