From 41190343562493449a1801fa5a7eecf181b8656e Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Tue, 1 Oct 2019 15:18:09 +0300 Subject: diagnostics: add more prefixes. This also starts preparations for overhaul of this subsystem. Signed-off-by: Gediminas Jakutis --- include/rin/diagnostic.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/rin/diagnostic.h b/include/rin/diagnostic.h index 5101d88..4ac071e 100644 --- a/include/rin/diagnostic.h +++ b/include/rin/diagnostic.h @@ -21,6 +21,17 @@ #ifndef LIBRIN_DIAGNOSTIC_INCLUDED #define LIBRIN_DIAGNOSTIC_INCLUDED +#define RIN_DIAG_SET 1 +#define RIN_DIAG_UNSET 0 +#define RIN_DIAG_PREFIX (1 << 0) +#define RIN_DIAG_TIME (1 << 1) +#define RIN_DIAG_THREADNUM (1 << 2) +#define RIN_DIAG_ALLFLAGS ( RIN_DIAG_PREFIX | \ + RIN_DIAG_TIME | \ + RIN_DIAG_THREADNUM) + +int rin_diag_flags(int flag, int action); + void rin_err(const char *format, ...); void rin_fixme(const char *format, ...); void rin_warn(const char *format, ...); -- cgit v1.2.3