From 5782ed4c6b0c0dc3a1f5863935541301ebc4e5ef Mon Sep 17 00:00:00 2001 From: Soikk Date: Thu, 11 Dec 2025 01:47:51 +0100 Subject: Increased message limit for logs --- bit/bit.c | 0 log/log.c | 2 +- log/log.h | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 bit/bit.c diff --git a/bit/bit.c b/bit/bit.c old mode 100755 new mode 100644 diff --git a/log/log.c b/log/log.c index 74ee010..3d36472 100755 --- a/log/log.c +++ b/log/log.c @@ -166,7 +166,7 @@ void log_message(int level, char *file, int line, char *fmt, ...){ log_levels[level].name, "\e[0m" ); if(level == LOG_DEBUG){ - written += snprintf(msg+written, MSG_LIMIT-2-written, "%s:%d: ",file, line); + written += snprintf(msg+written, MSG_LIMIT-2-written, "%s:%d: ", file, line); } va_list args; va_start(args, fmt); diff --git a/log/log.h b/log/log.h index 1e35301..26eb333 100755 --- a/log/log.h +++ b/log/log.h @@ -23,7 +23,7 @@ enum { }; #define MAX_LOGFILES (8) -#define MSG_LIMIT (256) +#define MSG_LIMIT (4096) int log_get_stderr(int level); -- cgit v1.2.3