projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Error handling when sending relayd sockets to consumer
[lttng-tools.git]
/
src
/
common
/
error.h
diff --git
a/src/common/error.h
b/src/common/error.h
index 5837d1cc33184b34398f94a29775224e0d38e469..03af109a14fbc3772af12fe2661ab31a2e3d3f9a 100644
(file)
--- a/
src/common/error.h
+++ b/
src/common/error.h
@@
-20,12
+20,15
@@
#include <errno.h>
#include <stdio.h>
#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 <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
/* Stringify the expansion of a define */
#define XSTR(d) STR(d)
#define STR(s) #s
@@
-64,6
+67,8
@@
extern int lttng_opt_verbose;
#define MSG(fmt, args...) \
__lttng_print(PRINT_MSG, fmt "\n", ## args)
#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...) \
#define ERR(fmt, args...) \
__lttng_print(PRINT_ERR, "Error: " fmt "\n", ## args)
#define WARN(fmt, args...) \
@@
-107,4
+112,6
@@
extern int lttng_opt_verbose;
} while(0);
#endif
} while(0);
#endif
+const char *error_get_str(int32_t code);
+
#endif /* _ERROR_H */
#endif /* _ERROR_H */
This page took
0.025323 seconds
and
4
git commands to generate.