#include <basic_def.h> #include <all_share.h> #include <stdarg.h> 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); }