aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckerrlog.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-10-26 13:52:32 +0300
committergramanas <anastasis.gramm2@gmail.com>2018-10-26 13:52:32 +0300
commita6b2b4b2a4095d2f95419df986378e54432c2d71 (patch)
treeea94ac255bab5bf3665092c42207e8f3229411a2 /src/ckerrlog.h
parentc3267a360860de225fa0af666d99f60d03266249 (diff)
downloadck-a6b2b4b2a4095d2f95419df986378e54432c2d71.tar.gz
ck-a6b2b4b2a4095d2f95419df986378e54432c2d71.tar.bz2
ck-a6b2b4b2a4095d2f95419df986378e54432c2d71.zip
Small corrections
Diffstat (limited to 'src/ckerrlog.h')
-rw-r--r--src/ckerrlog.h8
1 files changed, 7 insertions, 1 deletions
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();