X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Fusterr-signal-safe.h;h=c75516be4351a536dda0a09fe7ca894cf6166154;hb=15b385c8a645128e3ed89f7f840c1441223097a4;hp=1df5ada0ff2ec290d4eb5f53a15836a5bb7cb454;hpb=b52af4675af8dce5a6c99f366102713c335a05da;p=lttng-ust.git diff --git a/include/usterr-signal-safe.h b/include/usterr-signal-safe.h index 1df5ada0..c75516be 100644 --- a/include/usterr-signal-safe.h +++ b/include/usterr-signal-safe.h @@ -67,11 +67,6 @@ static inline int ust_debug(void) extern int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...) __attribute__ ((format (printf, 3, 4))); -static inline void __attribute__ ((format (printf, 1, 2))) - __check_ust_safe_fmt(const char *fmt, ...) -{ -} - /* Can't use dynamic allocation. Limit ourselves to USTERR_MAX_LEN chars. */ /* Add end of string in case of buffer overflow. */ #define sigsafe_print_err(fmt, args...) \ @@ -95,7 +90,7 @@ do { \ do { \ sigsafe_print_err(UST_STR_COMPONENT "[%ld/%ld]: " fmt " (in %s() at " __FILE__ ":" UST_XSTR(__LINE__) ")\n", \ (long) getpid(), \ - (long) gettid(), \ + (long) lttng_gettid(), \ ## args, __func__); \ } while(0)