vpn: cleanup of the code
[oweals/gnunet.git] / src / vpn / debug.c
1 #include <stdio.h>
2 #include <stdarg.h>
3 #include <stdlib.h>
4
5 #include "debug.h"
6
7 void debug(int lvl, int es, char* msg, ...) {
8         va_list ap;
9         va_start(ap, msg);
10         vprintf(msg, ap);
11         va_end(ap);
12         if (es != 0) exit(es);
13 }