From a6b2b4b2a4095d2f95419df986378e54432c2d71 Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 26 Oct 2018 13:52:32 +0300 Subject: Small corrections --- src/ckerrlog.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ckerrlog.h') diff --git a/src/ckerrlog.h b/src/ckerrlog.h index 66923cb..aa5840b 100644 --- a/src/ckerrlog.h +++ b/src/ckerrlog.h @@ -74,7 +74,13 @@ CK_STREAMS #define ERR(...) \ ckerr_with_delim("\n", "Error in [%s]:", COMPONENT); \ ckerr(__VA_ARGS__); \ - cklog_with_delim(" ", "ERROR: [%s]", COMPONENT); \ + cklog_with_delim(" ", "ERROR: [%s]", COMPONENT); \ + cklog(__VA_ARGS__); \ + report_err(); + +#define sERR(...) \ + ckerr(__VA_ARGS__); \ + cklog_with_delim(" ", "ERROR: [%s]", COMPONENT); \ cklog(__VA_ARGS__); \ report_err(); -- cgit v1.2.3