From: Christian Babeux Date: Fri, 7 Nov 2014 17:17:02 +0000 (-0500) Subject: Fix: Add missing URCU_TLS access to error_log_time X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=327115d8d042b3b1eb906d332c4c02a537ecdb27;p=lttng-tools.git Fix: Add missing URCU_TLS access to error_log_time Fixes #849 Signed-off-by: Christian Babeux Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/error.c b/src/common/error.c index 55d56e660..577070e7a 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -49,7 +49,7 @@ const char *log_add_time(void) } /* Format time in the TLS variable. */ - ret = snprintf(URCU_TLS(error_log_time).str, sizeof(error_log_time.str), + ret = snprintf(URCU_TLS(error_log_time).str, sizeof(URCU_TLS(error_log_time).str), "%02d:%02d:%02d.%06ld", tm.tm_hour, tm.tm_min, tm.tm_sec, tp.tv_nsec); if (ret < 0) {