You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
virglrenderer/server/render_common.c

26 lines
379 B

/*
* 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);
}