From 9ba2a4a0cfc19cd61596f507a10e62226fa7a07e Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 17 Jan 2020 08:22:28 +0100 Subject: [PATCH] cc_timer: show object name for better identification in debug output --- src/gui/components/cc_timer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/components/cc_timer.cpp b/src/gui/components/cc_timer.cpp index 34980e71d..939a0dbe9 100644 --- a/src/gui/components/cc_timer.cpp +++ b/src/gui/components/cc_timer.cpp @@ -62,12 +62,12 @@ void CComponentsTimer::threadCallback(CComponentsTimer *tm) if (!tm) return; - if (tm->OnTimer.empty()) - dprintf(DEBUG_NORMAL," \033[36m[CComponentsTimer] [%s - %d] Signal OnTimer is empty, no callback defined \033[0m\n", __func__, __LINE__); - tm->tn = "cc.timer:" + tm->tm_thread_name; set_threadname(tm->tn.c_str()); + if (tm->OnTimer.empty()) + dprintf(DEBUG_NORMAL," \033[36m[CComponentsTimer] [%s - %d] Signal OnTimer for %s is empty, no callback defined \033[0m\n", __func__, __LINE__, tm->tn.c_str()); + dprintf(DEBUG_DEBUG,"\033[32m[CComponentsTimer] thread [%p] [%s] [%s - %d] loop start \033[0m\n", tm->tm_thread, tm->tn.c_str(), __func__, __LINE__); #if HAVE_COOL_HARDWARE //time offset