xref: /third_party/backends/lib/vsyslog.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/backends/lib/
1141cc406Sopenharmony_ci#include "../include/sane/config.h"
2141cc406Sopenharmony_ci
3141cc406Sopenharmony_ci#ifndef HAVE_VSYSLOG
4141cc406Sopenharmony_ci
5141cc406Sopenharmony_ci#include <stdio.h>
6141cc406Sopenharmony_ci#include <stdarg.h>
7141cc406Sopenharmony_ci
8141cc406Sopenharmony_civoid vsyslog(int priority, const char *format, va_list args)
9141cc406Sopenharmony_ci{
10141cc406Sopenharmony_ci  char buf[1024];
11141cc406Sopenharmony_ci  vsnprintf(buf, sizeof(buf), format, args);
12141cc406Sopenharmony_ci  syslog(priority, "%s", buf);
13141cc406Sopenharmony_ci}
14141cc406Sopenharmony_ci
15141cc406Sopenharmony_ci#endif /* !HAVE_VSYSLOG */
16

Indexes created Thu Nov 07 10:32:03 CST 2024