예제 #1
0
파일: Utility.hpp 프로젝트: lieff/GIGL
// 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);
}
예제 #2
0
/**
 * Print all existing trace records to the system log.
 */
void CacheTrace::print()
{
    printInternal(NULL);
}
예제 #3
0
/**
 * Return a string containing a printout of the records in the trace.
 */
std::string CacheTrace::getTrace()
{
    std::string s;
    printInternal(&s);
    return s;
}