From 2c379872d9662ea233bdb987f3e6208d62abfba2 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Tue, 22 Nov 2022 18:55:34 +0100 Subject: [PATCH] moved logger-test's write message to WRITE_MESSAGE flag --- include/logger/flags.h | 2 ++ src/logger/lib/test/main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/logger/flags.h b/include/logger/flags.h index 2b3a14b..b4f5fb8 100644 --- a/include/logger/flags.h +++ b/include/logger/flags.h @@ -7,6 +7,8 @@ const enum RETURN_CODES //exit codes you fucking idiot (2#) INVALID_FILE = -1 //THIS WILL HAPPEN IF YOU USE TOO MUCH LOGS lol }; +#define WRITE_MESSAGE "Hello from logger-test! 👋" + #define LOG_FORMAT "yyyy-mm-dd_xxx.log" //THE LAST xxx IS FOR BASE-16 NUMBER OF USAGE THAT DAY (SO MAX IS 4095 [FFF] USAGES PER DAY) #define LOG_FORMATTING "%s/%04d-%02d-%02d_%03x" //SAME THING AS LOG_FORMAT, BUT USED IN sprintf IN logger.c, NOT AS LENGTH diff --git a/src/logger/lib/test/main.c b/src/logger/lib/test/main.c index c8ead77..6dec1b2 100644 --- a/src/logger/lib/test/main.c +++ b/src/logger/lib/test/main.c @@ -8,7 +8,7 @@ int main(void) printf("%d\n", test); - writeLog(test, "Hello from logger-test! 👋"); + writeLog(test, WRITE_MESSAGE); deallocateLogger(test); return 0;