X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ferror.h;h=6c239fe56e2ea2c041069490a79d3fff1d3f0284;hp=9c9d2a7b15c0b39a5c1b64e4c4dd153d56817278;hb=9bbd8e06acdcc06e6a6b22670c79a4da3e793f70;hpb=d4d80f770fc0b0762b18b482381418f01aeb69db diff --git a/src/common/error.h b/src/common/error.h index 9c9d2a7b1..6c239fe56 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -89,6 +89,9 @@ extern int lttng_opt_mi; ((type) & (PRINT_WARN | PRINT_ERR | PRINT_BUG))) { \ fprintf(stderr, fmt, ## args); \ } \ + if ((type) & (PRINT_ERR | PRINT_BUG)) { \ + lttng_abort_on_error(); \ + } \ } while (0); /* Three level of debug. Use -v, -vv or -vvv for the levels */ @@ -174,4 +177,6 @@ const char *error_get_str(int32_t code); */ const char *log_add_time(); +void lttng_abort_on_error(void); + #endif /* _ERROR_H */