X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fusterr.h;h=86c9bf866a256dcff7f2b2ae6bf9893381db702a;hb=d9ecffa9ad6203df66b5fa81e8d505c3a9779c16;hp=35d576ec1815ab755cd80b8a8b2659fbacfe62ee;hpb=2f864739715ce0d04a2d9a6ad78e9b84d1ce90d3;p=lttng-ust.git diff --git a/include/usterr.h b/include/usterr.h index 35d576ec..86c9bf86 100644 --- a/include/usterr.h +++ b/include/usterr.h @@ -27,6 +27,7 @@ #include #include +#include "lttng/ust-tid.h" #include "share.h" enum ust_loglevel { @@ -57,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)