From 204b4140bbecfb283899a1bf1658be872274c409 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 25 Oct 2021 17:57:41 +0100 Subject: [PATCH] Fix compiler warning --- Log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Log.cpp b/Log.cpp index 5d80ca4..752601e 100644 --- a/Log.cpp +++ b/Log.cpp @@ -161,7 +161,7 @@ void Log(unsigned int level, const char* fmt, ...) struct tm* tm = ::gmtime(&now.tv_sec); - ::sprintf(buffer, "%c: %04d-%02d-%02d %02d:%02d:%02d.%03ld ", LEVELS[level], tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, now.tv_usec / 1000L); + ::sprintf(buffer, "%c: %04d-%02d-%02d %02d:%02d:%02d.%03lld ", LEVELS[level], tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, now.tv_usec / 1000LL); #endif va_list vl;