summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoikk2025-12-11 01:47:51 +0100
committerSoikk2025-12-11 01:47:51 +0100
commit5782ed4c6b0c0dc3a1f5863935541301ebc4e5ef (patch)
treea91a436ca0331e4a0abd6143a43e619abaafdc8c
parent7bcdd0f00754dc82772386f17cd885b9c71a2db0 (diff)
downloadsoikk-libs-master.tar.xz
soikk-libs-master.tar.zst
Increased message limit for logsHEADmaster
-rw-r--r--[-rwxr-xr-x]bit/bit.c0
-rwxr-xr-xlog/log.c2
-rwxr-xr-xlog/log.h2
3 files changed, 2 insertions, 2 deletions
diff --git a/bit/bit.c b/bit/bit.c
index a4924a0..a4924a0 100755..100644
--- a/bit/bit.c
+++ b/bit/bit.c
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);