From 90099147cf34336ffd621f35f550e32977b97e2f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 12 Oct 2025 15:24:32 +0200 Subject: checkpoint --- source/chatty.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/chatty.h') diff --git a/source/chatty.h b/source/chatty.h index f7525fa..04e2a85 100644 --- a/source/chatty.h +++ b/source/chatty.h @@ -58,19 +58,19 @@ LoggingF(char* format, ...) char buf[LOGMESSAGE_MAX]; va_list args; va_start(args, format); - + vsnprintf(buf, sizeof(buf), format, args); va_end(args); - + int n = 0; while (*(buf + n) != 0) n++; - + u64 t = time(0); u8 timestamp[LOG_LEN]; struct tm* ltime = localtime((time_t*)&t); strftime((char*)timestamp, LOG_LEN, LOG_FMT, ltime); write(LogFD, timestamp, LOG_LEN - 1); - + write(LogFD, buf, n); } -- cgit v1.2.3-70-g09d2