sane-project-backends/lib/vsyslog.c

18 wiersze
306 B
C
Czysty Zwykły widok Historia

#include "../include/sane/config.h"
2000-08-12 15:11:46 +00:00
#include "stdio.h"
#include <syslog.h>
#include <stdarg.h>
#ifndef HAVE_VSYSLOG
void
vsyslog(int priority, const char *format, va_list args)
{
char buf[1024];
vsnprintf(buf, sizeof(buf), format, args);
syslog(priority, "%s", buf);
}
#endif /* !HAVE_VSYSLOG */