MCPcopy Create free account
hub / github.com/SIPp/sipp / _trace

Function _trace

src/logger.cpp:335–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335static int _trace(struct logfile_info* lfi, const char* fmt, va_list ap)
336{
337 int ret = 0;
338 if (lfi->fptr) {
339 ret = vfprintf(lfi->fptr, fmt, ap);
340 fflush(lfi->fptr);
341
342 lfi->count += ret;
343
344 if (max_log_size && lfi->count > max_log_size) {
345 fclose(lfi->fptr);
346 lfi->fptr = nullptr;
347 }
348
349 if (ringbuffer_size && lfi->count > ringbuffer_size) {
350 rotatef(lfi);
351 lfi->count = 0;
352 }
353 }
354 return ret;
355}
356
357int TRACE_MSG(const char* fmt, ...)
358{

Callers 4

TRACE_MSGFunction · 0.85
TRACE_SHORTMSGFunction · 0.85
LOG_MSGFunction · 0.85
TRACE_CALLDEBUGFunction · 0.85

Calls 1

rotatefFunction · 0.85

Tested by

no test coverage detected