/* Three level of debug. Use -v, -vv or -vvv for the levels */
#define _ERRMSG(msg, type, fmt, args...) __lttng_print(type, msg \
" - %s [%ld/%ld]: " fmt " (in %s() at " __FILE__ ":" XSTR(__LINE__) ")\n", \
- log_add_time(), (long) getpid(), (long) gettid(), ## args, __func__)
+ log_add_time(), (long) getpid(), (long) lttng_gettid(), ## args, __func__)
#define _ERRMSG_NO_LOC(msg, type, fmt, args...) __lttng_print(type, msg \
" - %s [%ld/%ld]: " fmt "\n", \
- log_add_time(), (long) getpid(), (long) gettid(), ## args)
+ log_add_time(), (long) getpid(), (long) lttng_gettid(), ## args)
#define MSG(fmt, args...) \
__lttng_print(PRINT_MSG, fmt "\n", ## args)
* the caller. On error, an empty string is returned thus no time will be
* printed in the log.
*/
-const char *log_add_time();
+const char *log_add_time(void);
#endif /* _ERROR_H */