Build fix: Missing message in LTTNG_DEPRECATED invocation
[lttng-tools.git] / src / common / error.c
index 4d6b26b229c0a8773fe9ebb427b880c5986afc84..b888c2643f6e1a66ccaaedef601cae8e49cc516f 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <inttypes.h>
 #include <pthread.h>
 #include <stdlib.h>
@@ -32,7 +31,6 @@ static int lttng_opt_abort_on_error = -1;
 DEFINE_URCU_TLS(struct log_time, error_log_time);
 DEFINE_URCU_TLS(const char *, logger_thread_name);
 
-LTTNG_HIDDEN
 const char *log_add_time(void)
 {
        int ret;
@@ -69,12 +67,11 @@ error:
        return "";
 }
 
-LTTNG_HIDDEN
 void logger_set_thread_name(const char *name, bool set_pthread_name)
 {
        int ret;
 
-       assert(name);
+       LTTNG_ASSERT(name);
        URCU_TLS(logger_thread_name) = name;
 
        if (set_pthread_name) {
@@ -256,7 +253,6 @@ static const char *error_string_array[] = {
  *
  * These code MUST be negative in other to treat that as an error value.
  */
-LTTNG_HIDDEN
 const char *error_get_str(int32_t code)
 {
        code = -code;
@@ -268,7 +264,6 @@ const char *error_get_str(int32_t code)
        return error_string_array[ERROR_INDEX(code)];
 }
 
-LTTNG_HIDDEN
 void lttng_abort_on_error(void)
 {
        if (lttng_opt_abort_on_error < 0) {
This page took 0.023887 seconds and 4 git commands to generate.