10 static void __log(const char *fmt, va_list ap)
14 vfprintf(logf, fmt, ap);
18 void pb_log(const char *fmt, ...)
26 void pb_debug(const char *fmt, ...)
36 void __pb_log_init(FILE *fp, bool _debug)
44 void pb_log_set_debug(bool _debug)
49 FILE *pb_log_get_stream(void)
51 static FILE *null_stream;
54 null_stream = fopen("/dev/null", "a");