Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Oct 25, 2021
1 parent 8a5f798 commit 204b414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 204b414

Please sign in to comment.