/* Client versions of logging functions */
static void
-vlog(const char *msg, va_list args)
+vlog_cli(const char *msg, va_list args)
{
char buf[1024];
va_start(args, msg);
cleanup();
fputs("Internal error: ", stderr);
- vlog(msg, args);
+ vlog_cli(msg, args);
vfprintf(stderr, msg, args);
va_end(args);
exit(1);
va_start(args, msg);
cleanup();
- vlog(msg, args);
+ vlog_cli(msg, args);
va_end(args);
exit(1);
}
#define _BIRD_BIRDLIB_H_
#include "lib/alloca.h"
+#include <stdarg.h>
/* Ugly structure offset handling macros */
void log_rl(struct tbf *rl, const char *msg, ...);
void die(const char *msg, ...) NORET;
void bug(const char *msg, ...) NORET;
+void vlog(int class, const char *msg, va_list args);
#define L_DEBUG "\001" /* Debugging messages */
#define L_TRACE "\002" /* Protocol tracing */
int buffer_vprint(buffer *buf, const char *fmt, va_list args);
-static void
+void
vlog(int class, const char *msg, va_list args)
{
buffer buf;