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 ca5af86cdb56e6519164d8f7486697723a1b495a..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 */
@@
-103,7
+106,7
@@
extern int lttng_opt_mi;
#define ERR(fmt, args...) \
__lttng_print(PRINT_ERR, "Error: " fmt "\n", ## args)
#define WARN(fmt, args...) \
#define ERR(fmt, args...) \
__lttng_print(PRINT_ERR, "Error: " fmt "\n", ## args)
#define WARN(fmt, args...) \
- __lttng_print(PRINT_
ERR
, "Warning: " fmt "\n", ## args)
+ __lttng_print(PRINT_
WARN
, "Warning: " fmt "\n", ## args)
#define BUG(fmt, args...) _ERRMSG("BUG", PRINT_BUG, fmt, ## args)
#define BUG(fmt, args...) _ERRMSG("BUG", PRINT_BUG, fmt, ## args)
@@
-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.023503 seconds
and
4
git commands to generate.