Fix: lttng logs nanoseconds
[lttng-tools.git] / src / common / error.h
index e8c811ee60e34e2510d65907cac6ba94747fe332..820369c8810862e1b6e9cc780ef90bc1e9960643 100644 (file)
@@ -24,7 +24,7 @@
 #include <string.h>
 #include <stdbool.h>
 #include <urcu/tls-compat.h>
-#include <time.h>
+#include <common/compat/time.h>
 
 #ifndef _GNU_SOURCE
 #error "lttng-tools error.h needs _GNU_SOURCE"
@@ -48,8 +48,8 @@
  * every time a log is fired.
  */
 struct log_time {
-       /* Format: 00:00:00.000000 plus NULL byte. */
-       char str[16];
+       /* Format: 00:00:00.000000000 plus NULL byte. */
+       char str[19];
 };
 extern DECLARE_URCU_TLS(struct log_time, error_log_time);
 
This page took 0.024085 seconds and 4 git commands to generate.