minix/commands/service/util.c
Ben Gras a5f09d5196 service: nonfatally ignore unknown call keywords
. makes switching between revisions with new system.conf
	  keywords less risky
2013-01-08 18:54:04 +00:00

28 lines
419 B
C

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
void fatal(char *fmt, ...)
{
va_list ap;
fprintf(stderr, "service: fatal error: ");
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
fprintf(stderr, "\n");
exit(1);
}
void warning(char *fmt, ...)
{
va_list ap;
fprintf(stderr, "service: warning: ");
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
fprintf(stderr, "\n");
}