X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ferror.h;h=0fbd3a2ed8ae19e8bc5db51a6275729eb8ab04ae;hp=ad6113fa7494599cebcdb81b0a3bd7c2ef4956a0;hb=ce69c47f5fb8cef80cf7ae8e766e4db354598e6d;hpb=ab530aafeeff0dc4ae4b001bb3994bfaf2d5e55f diff --git a/src/common/error.h b/src/common/error.h index ad6113fa7..0fbd3a2ed 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -58,7 +58,7 @@ extern int lttng_opt_verbose; extern int lttng_opt_mi; /* Error type. */ -enum lttng_error_type { +enum lttng_error_level { PRINT_ERR = 0, PRINT_BUG = 1, PRINT_WARN = 2, @@ -68,7 +68,7 @@ enum lttng_error_type { 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) { @@ -117,7 +117,7 @@ static inline bool __lttng_print_check_opt(enum lttng_error_type 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: