| 171 | } |
| 172 | |
| 173 | static void xnLogCreateEntryV(XnBufferedLogEntry* pEntry, const XnChar* csLogMask, XnLogSeverity nSeverity, const XnChar* csFile, XnUInt32 nLine, const XnChar* csFormat, va_list args) |
| 174 | { |
| 175 | // format message |
| 176 | XnUInt32 nChars; |
| 177 | xnOSStrFormatV(pEntry->Buffer(), pEntry->MaxBufferSize(), &nChars, csFormat, args); |
| 178 | |
| 179 | // create log entry |
| 180 | xnOSGetHighResTimeStamp(&pEntry->nTimestamp); |
| 181 | pEntry->nSeverity = nSeverity; |
| 182 | pEntry->strSeverity = xnLogGetSeverityString(nSeverity); |
| 183 | pEntry->strMask = csLogMask; |
| 184 | pEntry->strFile = csFile; |
| 185 | pEntry->nLine = nLine; |
| 186 | } |
| 187 | |
| 188 | static void xnLogCreateEntry(XnBufferedLogEntry* pEntry, const XnChar* csLogMask, XnLogSeverity nSeverity, const XnChar* csFile, XnUInt32 nLine, const XnChar* csFormat, ...) |
| 189 | { |
no test coverage detected