extern int lttng_opt_mi;
/* Error type. */
-enum lttng_error_type {
+enum lttng_error_level {
PRINT_ERR = 0,
PRINT_BUG = 1,
PRINT_WARN = 2,
PRINT_DBG3 = 6,
};
-static inline bool __lttng_print_check_opt(enum lttng_error_type type)
+static inline bool __lttng_print_check_opt(enum lttng_error_level type)
{
/* lttng_opt_mi and lttng_opt_quiet. */
switch (type) {
void lttng_abort_on_error(void);
-static inline void __lttng_print_check_abort(enum lttng_error_type type)
+static inline void __lttng_print_check_abort(enum lttng_error_level type)
{
switch (type) {
case PRINT_DBG3:
#define _PERROR(fmt, args...) _ERRMSG("PERROR", PRINT_ERR, fmt, ## args)
-#if !defined(__linux__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
+#if !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
/*
* Version using XSI strerror_r.