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:24:04 +0000 (12:24 -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 26dc0679833b694edd87af2dfefcdf4ae9a3b500..e4c974a6c498da6ad705b0f9ca9b77e6eec4af8c 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.025702 seconds and 4 git commands to generate.