isfshax/stage2/debug.c

16 lines
292 B
C
Raw Normal View History

2021-05-26 01:53:11 +02:00
#ifdef LOLSERIAL_DEBUG
extern void lolserial_lprint(char *str, int len);
void DEBUG(char *fmt, ...)
{
char str[256];
va_list va;
va_start(va, fmt);
vsnprintf(str, sizeof(str), fmt, va);
lolserial_lprint(str, sizeof(str));
va_end(va);
}
#endif /* LOLSERIAL_DEBUG */