From 209d02282bf1994d365a4aa71409b142ed7af877 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 24 Apr 2015 17:12:16 +0200 Subject: [PATCH] gtimer check: little cleanup (show the previous caller id) --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 2cdfecc06..b7135fe8f 100644 --- a/src/main.c +++ b/src/main.c @@ -488,6 +488,8 @@ mainloop(void) struct timespec ts; #if ENABLE_GTIMER_CHECK int64_t mtm; + const char *id; + const char *fcn; #endif while(tvheadend_running) { @@ -524,6 +526,8 @@ mainloop(void) #if ENABLE_GTIMER_CHECK mtm = getmonoclock(); + id = gti->gti_id; + fcn = gti->gti_fcn; #endif cb = gti->gti_callback; @@ -533,7 +537,7 @@ mainloop(void) cb(gti->gti_opaque); #if ENABLE_GTIMER_CHECK - tvhtrace("gtimer", "%s:%s duration %"PRId64"ns", gti->gti_id, gti->gti_fcn, getmonoclock() - mtm); + tvhtrace("gtimer", "%s:%s duration %"PRId64"ns", id, fcn, getmonoclock() - mtm); #endif } -- 2.47.2