projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng logs nanoseconds
[lttng-tools.git]
/
src
/
common
/
error.h
diff --git
a/src/common/error.h
b/src/common/error.h
index 0fbd3a2ed8ae19e8bc5db51a6275729eb8ab04ae..820369c8810862e1b6e9cc780ef90bc1e9960643 100644
(file)
--- a/
src/common/error.h
+++ b/
src/common/error.h
@@
-24,7
+24,7
@@
#include <string.h>
#include <stdbool.h>
#include <urcu/tls-compat.h>
#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"
#ifndef _GNU_SOURCE
#error "lttng-tools error.h needs _GNU_SOURCE"
@@
-48,8
+48,8
@@
* every time a log is fired.
*/
struct log_time {
* every time a log is fired.
*/
struct log_time {
- /* Format: 00:00:00.000000 plus NULL byte. */
- char str[1
6
];
+ /* Format: 00:00:00.000000
000
plus NULL byte. */
+ char str[1
9
];
};
extern DECLARE_URCU_TLS(struct log_time, error_log_time);
};
extern DECLARE_URCU_TLS(struct log_time, error_log_time);
@@
-198,7
+198,7
@@
static inline void __lttng_print_check_abort(enum lttng_error_level type)
#define _PERROR(fmt, args...) _ERRMSG("PERROR", PRINT_ERR, fmt, ## args)
#define _PERROR(fmt, args...) _ERRMSG("PERROR", PRINT_ERR, fmt, ## args)
-#if !defined(__
linux
__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
+#if !defined(__
GLIBC
__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
/*
* Version using XSI strerror_r.
/*
* Version using XSI strerror_r.
This page took
0.02388 seconds
and
4
git commands to generate.