File: render_common.c

package info (click to toggle)
virglrenderer 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,340 kB
  • sloc: ansic: 138,601; python: 963; sh: 470; makefile: 42
file content (26 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: MIT
 */

#include "render_common.h"

#include <stdarg.h>
#include <stdio.h>
#include <syslog.h>

void
render_log_init(void)
{
   openlog(NULL, LOG_NDELAY | LOG_PERROR | LOG_PID, LOG_USER);
}

void
render_log(const char *fmt, ...)
{
   va_list va;

   va_start(va, fmt);
   vsyslog(LOG_DEBUG, fmt, va);
   va_end(va);
}