示例#1
0
/* if condition is true, log and abort */
void FailIf(int cond, int err, char const *fmt, ...)
{
  ZLO(!cond);
  SetExitState(msg);
  NaClExit(err);
}
示例#2
0
/*
 * append tag (if data is available) and put the message to syslog
 * note: should only be used from ZLOG macro
 */
void ZLog(int priority, char *fmt, ...)
{
  ZLO(priority > verbosity);
  assert(priority != LOG_FATAL);
}
示例#3
0
/* if condition is true, log and continue */
void LogIf(int cond, char const *fmt, ...)
{
  ZLO(!cond);
}
示例#4
0
文件: zlog.c 项目: bobot/zerovm
void FailIf(int cond, int err, char const *fmt, ...)
{
  ZLO(!cond);
  SetExitState(msg);
  ReportDtor(err);
}