#include "stdinc.h"
#include "dat.h"
#include "fns.h"
char TraceDisk[] = "disk";
char TraceLump[] = "lump";
char TraceBlock[] = "block";
char TraceProc[] = "proc";
char TraceWork[] = "work";
char TraceQuiet[] = "quiet";
char TraceRpc[] = "rpc";
void
trace(char *level, char *fmt, ...)
{
char buf[512];
va_list arg;
if(level == nil || !ventilogging)
return;
va_start(arg, fmt);
vsnprint(buf, sizeof buf, fmt, arg);
va_end(arg);
vtlog(level, "%T %s: %s
\n",
threadgetname(), buf);
vtlog("all", "%T %s %s: %s
\n",
level, threadgetname(), buf);
}
void
traceinit(void)
{
}
void
settrace(char *trace)
{
}