void die(char *format, ...)
{
	va_list ap;
	va_start(ap, format);
	vlog_error(format, ap);
	va_end(ap);
	exit(1);
}
示例#2
0
void
FileLogger::log_error(const char *component, const char *format, ...)
{
  va_list arg;
  va_start(arg, format);
  vlog_error(component, format, arg);
  va_end(arg);
}
示例#3
0
void
log_error(const char *format, ...)
{
	va_list ap;

	va_start(ap, format);
	vlog_error(format, ap);
	va_end(ap);
}
示例#4
0
void log_error
(
    int lineno,
    long msg_id,
    ...
)
{
    va_list ap;

    va_start(ap, msg_id);

    vlog_error(lineno, msg_id, ap);

    va_end(ap);
}
示例#5
0
void
internal_error (const char *format, ...)
{
	va_list args;
	va_start (args, format);
	fprintf(stderr, "%s INTERNAL ERROR: ", program_name);
	vfprintf(stderr, format, args);
	fprintf(stderr, "\n");
	va_end (args);

	va_start (args, format);
	vlog_error (format, args);
	va_end (args);

	internal_error_occurred = 1;
	set_error_status(RC_INTERNAL_ERROR);
	errors++;
}