summaryrefslogtreecommitdiff
path: root/lib/vsyslog.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-02 20:17:04 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-12-02 20:17:04 +0100
commit7d8191b83e163d76bb05e13b373638e4eeb7da95 (patch)
treefe29c36a3cb4ef2267b2253da4dde8ce360b3cb5 /lib/vsyslog.c
Initial import of sane-frontends version 1.0.14-9
Diffstat (limited to 'lib/vsyslog.c')
-rw-r--r--lib/vsyslog.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/vsyslog.c b/lib/vsyslog.c
new file mode 100644
index 0000000..ce86301
--- /dev/null
+++ b/lib/vsyslog.c
@@ -0,0 +1,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 */