Fix: Add missing URCU_TLS access to error_log_time
authorChristian Babeux <christian.babeux@efficios.com>
Fri, 7 Nov 2014 17:17:02 +0000 (12:17 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Nov 2014 17:20:25 +0000 (12:20 -0500)
Fixes #849

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/error.c

index 55d56e6602d72c9da3527111f43bf58c4f0d2d9b..577070e7a1d3709e97ba4b4ad42596394c43d12f 100644 (file)
@@ -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) {
This page took 0.026017 seconds and 4 git commands to generate.