summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macros.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/macros.h b/macros.h
index 8b8267a..41dc81a 100644
--- a/macros.h
+++ b/macros.h
@@ -2,13 +2,5 @@
#define MACROS_H
#define log(priority, ...) syslog(priority, __VA_ARGS__)
-
-#define did_fail(cond, ...) {\
- if (cond) {\
- log(LOG_ERR, __VA_ARGS__); \
- return -1; \
- }\
-}
-
-#define did_fail_reason(cond, msg, ...) did_fail(cond, msg " Reason: %s", __VA_ARGS__)
+#define log_reason(priority, msg, ...) log(priority, msg " Reason %s", __VA_ARGS__)
#endif