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

Function LogInfo

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

Source from the content-addressed store, hash-verified

37}
38
39void 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
53void LogError(const Loc &loc, const char *fmt, ...) {
54 if (fmt == nullptr) {

Callers

nothing calls this directly

Calls 1

LogStringFunction · 0.85

Tested by

no test coverage detected