MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / LogError

Function LogError

lib/mdflib/mdfviewer/src/util/logging.cpp:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void LogError(const Loc &loc, const char *fmt, ...) {
54 if (fmt == nullptr) {
55 return;
56 }
57 char buffer[5000]{};
58 std::va_list lsArg;
59 va_start(lsArg, fmt);
60 std::vsnprintf(buffer, 5000, fmt, lsArg);
61 va_end(lsArg);
62 buffer[4999] = '\0';
63
64 LogString(loc, LogSeverity::kError, buffer);
65}
66
67void LogString(const Loc &loc, LogSeverity severity,
68 const std::string &message) {

Callers

nothing calls this directly

Calls 1

LogStringFunction · 0.85

Tested by

no test coverage detected