| 37 | } |
| 38 | |
| 39 | void LogInfo(const Loc &loc, const char *fmt, ...) { |
| 40 | if (fmt == nullptr) { |
| 41 | return; |
| 42 | } |
| 43 | char buffer[5000]{}; |
| 44 | std::va_list lsArg; |
| 45 | va_start(lsArg, fmt); |
| 46 | std::vsnprintf(buffer, 5000, fmt, lsArg); |
| 47 | va_end(lsArg); |
| 48 | buffer[4999] = '\0'; |
| 49 | |
| 50 | LogString(loc, LogSeverity::kInfo, buffer); |
| 51 | } |
| 52 | |
| 53 | void LogError(const Loc &loc, const char *fmt, ...) { |
| 54 | if (fmt == nullptr) { |
nothing calls this directly
no test coverage detected