示例#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;
}