// Print warnings/errors to stderr (printf syntax) static inline void printError(const char* const fmt, ...) { va_list args; va_start(args, fmt); printInternal(stderr, fmt, args); va_end(args); fputs("\n", stderr); }
/** * Print all existing trace records to the system log. */ void CacheTrace::print() { printInternal(NULL); }
/** * Return a string containing a printout of the records in the trace. */ std::string CacheTrace::getTrace() { std::string s; printInternal(&s); return s; }