#include #include #include void __debug_printf( char *file, int line, char *fmt, ...){ static char buff[2048]; va_list ap; va_start(ap, fmt); vsprintf( buff, fmt, ap); va_end(ap); printf( "[%s:%d]%s", file, line, buff); }