summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-13 20:29:27 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-13 20:29:27 +1000
commit567d384b698151e287e31140709c93f1b92e6db4 (patch)
treee00975124d3f002a8aaa22e85475d913c6950346 /src/log.c
parent13949ca02bcf9fcdfcc48ea7949f617553a260b6 (diff)
loading joints and animations
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/log.c b/src/log.c
index 9c7eaa1..8bb7a65 100644
--- a/src/log.c
+++ b/src/log.c
@@ -17,9 +17,9 @@
#define WHT "\e[0;37m"
#define CRESET "\e[0m"
-static const char *level_strings[6] = { "[FATAL]: ", "[ERROR]: ", "[WARN]: ",
+static const char* level_strings[6] = { "[FATAL]: ", "[ERROR]: ", "[WARN]: ",
"[INFO]: ", "[DEBUG]: ", "[TRACE]: " };
-static const char *level_colours[6] = { RED, RED, YEL, BLU, CYN, MAG };
+static const char* level_colours[6] = { RED, RED, YEL, BLU, CYN, MAG };
bool logger_init() {
// TODO: create log file
@@ -30,7 +30,7 @@ void logger_shutdown() {
// does nothing right now
}
-void log_output(log_level level, const char *message, ...) {
+void log_output(log_level level, const char* message, ...) {
char out_message[32000];
memset(out_message, 0, sizeof(out_message));
@@ -49,7 +49,7 @@ void log_output(log_level level, const char *message, ...) {
printf("%s", out_message2);
}
-void report_assertion_failure(const char *expression, const char *message, const char *file,
+void report_assertion_failure(const char* expression, const char* message, const char* file,
int line) {
log_output(LOG_LEVEL_FATAL, "Assertion failure: %s, message: '%s', in file: %s, on line %d\n",
expression, message, file, line);