shithub: riscv

ref: 3f869a689403c385ca761be5535a5de2db054db4
dir: /sys/src/liboventi/fatal.c/

View raw version
#include <u.h>
#include <libc.h>
#include <oventi.h>

void
vtFatal(char *fmt, ...)
{
	va_list arg;

	va_start(arg, fmt);
	fprint(2, "fatal error: ");
	vfprint(2, fmt, arg);
	fprint(2, "\n");
	va_end(arg);
	exits("vtFatal");
}