#include <errno.h>
#include <stdio.h>
+#include <stdint.h>
#include <string.h>
#ifndef _GNU_SOURCE
#error "lttng-tools error.h needs _GNU_SOURCE"
#endif
+#include <lttng/lttng-error.h>
+
/* Stringify the expansion of a define */
#define XSTR(d) STR(d)
#define STR(s) #s
#define MSG(fmt, args...) \
__lttng_print(PRINT_MSG, fmt "\n", ## args)
+#define _MSG(fmt, args...) \
+ __lttng_print(PRINT_MSG, fmt, ## args)
#define ERR(fmt, args...) \
__lttng_print(PRINT_ERR, "Error: " fmt "\n", ## args)
#define WARN(fmt, args...) \
} while(0);
#endif
+const char *error_get_str(int32_t code);
+
#endif /* _ERROR_H */