From 329d54ade4def87b784b2a70773ba2a70e329f26 Mon Sep 17 00:00:00 2001 From: tylen Date: Thu, 3 Oct 2024 19:17:12 +0000 Subject: [PATCH] change long log format --- log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log.c b/log.c index 3f924be..76c92a8 100644 --- a/log.c +++ b/log.c @@ -78,11 +78,11 @@ static void __create_log_line(const char* _status, va_end(args); char buffer[LOG_BUFFER_MAX_CAP] = {0}; int buffer_len = snprintf(buffer, LOG_BUFFER_MAX_CAP, - "[%s] In [File: %s] [Func: %s] [Line: %zu] %.*s\n", + "[%s] %s:%zu:%s %.*s\n", _status, _location, - _func, _line, + _func, message_len, message); _LOG_STREAMOUT(buffer, buffer_len);