From: Jaroslav Kysela Date: Fri, 24 Apr 2015 15:12:16 +0000 (+0200) Subject: gtimer check: little cleanup (show the previous caller id) X-Git-Tag: v4.1~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=209d02282bf1994d365a4aa71409b142ed7af877;p=thirdparty%2Ftvheadend.git gtimer check: little cleanup (show the previous caller id) --- 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 }