summaryrefslogtreecommitdiff
path: root/lib/vsyslog.c
blob: ce86301ecb8506a2f916baff3872327f7a29c292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "../include/sane/config.h"

#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 */