From mboxrd@z Thu Jan 1 00:00:00 1970 From: c.briere@samsung.com (Charles Briere) Date: Mon, 27 Oct 2014 20:49:28 +0000 Subject: [lttng-dev] [PATCH lttng-tools 03/24] Fix : Wrap variable with URCU_TLS for sizeof In-Reply-To: <1414442926-14381-1-git-send-email-c.briere@samsung.com> References: <1414442926-14381-1-git-send-email-c.briere@samsung.com> Message-ID: <1414442926-14381-4-git-send-email-c.briere@samsung.com> From: Charles Briere Signed-off-by: Charles Briere --- src/common/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/error.c b/src/common/error.c index 55d56e6..577070e 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) { -- 2.1.2