Compat layer for gettid
[lttng-ust.git] / include / usterr.h
index fd5c80ae56475b40f46a067dc5be93010da5ad00..86c9bf866a256dcff7f2b2ae6bf9893381db702a 100644 (file)
@@ -27,8 +27,8 @@
 #include <stdarg.h>
 #include <stdio.h>
 
-#include <lttng/core.h>
-#include "lttng/share.h"
+#include "lttng/ust-tid.h"
+#include "share.h"
 
 enum ust_loglevel {
        UST_LOGLEVEL_UNKNOWN = 0,
@@ -58,7 +58,7 @@ static inline int ust_debug(void)
        do {                                                    \
                fprintf(stderr, UST_STR_COMPONENT "[%ld/%ld]: " fmt " (in %s() at " __FILE__ ":" XSTR(__LINE__) ")\n",                          \
                        (long) getpid(),                        \
-                       (long) syscall(SYS_gettid),             \
+                       (long) gettid(),                        \
                        ## args,                                \
                        __func__);                              \
        } while(0)
This page took 0.023254 seconds and 4 git commands to generate.