projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add environment variable to allow abort on error
[lttng-tools.git]
/
src
/
common
/
error.h
diff --git
a/src/common/error.h
b/src/common/error.h
index 9c9d2a7b15c0b39a5c1b64e4c4dd153d56817278..6c239fe56e2ea2c041069490a79d3fff1d3f0284 100644
(file)
--- 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); \
} \
((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 */
} 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();
*/
const char *log_add_time();
+void lttng_abort_on_error(void);
+
#endif /* _ERROR_H */
#endif /* _ERROR_H */
This page took
0.034618 seconds
and
4
git commands to generate.