summaryrefslogtreecommitdiff
path: root/src/logging
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-06-16 21:17:18 -0500
committersanine <sanine.not@pm.me>2022-06-16 21:17:18 -0500
commitddce0017ea8462012a3c05e3804bf026c1c0ebcf (patch)
tree0b4ce8d91c6d1e9dba59c9faba459a20c1fb5b6a /src/logging
parentc6262360d067fb988e06266865701bee9ddf4231 (diff)
rename logging functions from honey_* to honey_log_*
Diffstat (limited to 'src/logging')
-rw-r--r--src/logging/logging.h12
-rw-r--r--src/logging/logging.test.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/logging/logging.h b/src/logging/logging.h
index ad63a9c..f829169 100644
--- a/src/logging/logging.h
+++ b/src/logging/logging.h
@@ -13,11 +13,11 @@ extern int _honey_log_level;
void honey_set_log_level(int level);
void honey_log(int level, const char *fmt, ...);
-#define honey_fatal(...) honey_log(HONEY_FATAL, "[FATAL] "__VA_ARGS__)
-#define honey_error(...) honey_log(HONEY_ERROR, "[ERROR] "__VA_ARGS__)
-#define honey_warn(...) honey_log(HONEY_WARN, "[WARN] " __VA_ARGS__)
-#define honey_info(...) honey_log(HONEY_INFO, "[INFO] " __VA_ARGS__)
-#define honey_debug(...) honey_log(HONEY_DEBUG, "[DEBUG] "__VA_ARGS__)
-#define honey_trace(...) honey_log(HONEY_TRACE, "[TRACE] "__VA_ARGS__)
+#define honey_log_fatal(...) honey_log(HONEY_FATAL, "[FATAL] "__VA_ARGS__)
+#define honey_log_error(...) honey_log(HONEY_ERROR, "[ERROR] "__VA_ARGS__)
+#define honey_log_warn(...) honey_log(HONEY_WARN, "[WARN] " __VA_ARGS__)
+#define honey_log_info(...) honey_log(HONEY_INFO, "[INFO] " __VA_ARGS__)
+#define honey_log_debug(...) honey_log(HONEY_DEBUG, "[DEBUG] "__VA_ARGS__)
+#define honey_log_trace(...) honey_log(HONEY_TRACE, "[TRACE] "__VA_ARGS__)
#endif
diff --git a/src/logging/logging.test.c b/src/logging/logging.test.c
index a796903..7e53074 100644
--- a/src/logging/logging.test.c
+++ b/src/logging/logging.test.c
@@ -92,7 +92,7 @@ void level_fatal_log_fatal_succeeds()
USE_MOCK(mock_vfprintf);
honey_set_log_level(HONEY_FATAL);
- honey_fatal("some message");
+ honey_log_fatal("some message");
lily_assert_int_equal(mock_vfprintf_data->n_calls, 1);
FILE *file; const char *fmt; int n_strings;
@@ -114,6 +114,6 @@ void level_neg_log_fatal_fails()
USE_MOCK(mock_vfprintf);
honey_set_log_level(-1);
- honey_fatal("some message");
+ honey_log_fatal("some message");
lily_assert_int_equal(mock_vfprintf_data->n_calls, 0);
}