diff options
-rw-r--r-- | src/logging/logging.h | 12 | ||||
-rw-r--r-- | src/logging/logging.test.c | 4 |
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); } |