/*
- * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
+ * Copyright (C) 2011 EfficiOS Inc.
*
* SPDX-License-Identifier: GPL-2.0-only
*
/* Format: 00:00:00.000000000 plus NULL byte. */
char str[19];
};
-extern DECLARE_URCU_TLS(struct log_time, error_log_time);
+extern LTTNG_EXPORT DECLARE_URCU_TLS(struct log_time, error_log_time);
extern DECLARE_URCU_TLS(const char *, logger_thread_name);
extern int lttng_opt_quiet;
return true;
}
-void lttng_abort_on_error(void);
+C_LINKAGE void lttng_abort_on_error(void);
static inline void __lttng_print_check_abort(enum lttng_error_level type)
{
DBG3(fmt, ## args); \
break; \
default: \
- assert(0); \
+ abort(); \
} \
} while(0);
const char *log_add_time(void);
/* Name must be a statically-allocated string. */
-LTTNG_HIDDEN
void logger_set_thread_name(const char *name, bool set_pthread_name);
#endif /* _ERROR_H */