File: render_common.c

package info (click to toggle)
virglrenderer 0.10.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 78,744 kB
  • sloc: ansic: 118,882; sh: 1,259; python: 962; makefile: 40
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);
}