OpenVPN
error.c
Go to the documentation of this file.
1/*
2 * error -- OpenVPN compatible error reporting API
3 * https://community.openvpn.net/openvpn/wiki/Tapctl
4 *
5 * Copyright (C) 2002-2025 OpenVPN Inc <sales@openvpn.net>
6 * Copyright (C) 2018-2025 Simon Rozman <simon@rozman.si>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2
10 * as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, see <https://www.gnu.org/licenses/>.
19 */
20
21#include "error.h"
22
23
24/* Globals */
25unsigned int x_debug_level; /* GLOBAL */
26
27
28void
29x_msg(const unsigned int flags, const char *format, ...)
30{
31 va_list arglist;
32 va_start(arglist, format);
33 x_msg_va(flags, format, arglist);
34 va_end(arglist);
35}
unsigned int x_debug_level
Definition error.c:51
void x_msg(const unsigned int flags, const char *format,...)
Definition error.c:217
void x_msg_va(const unsigned int flags, const char *format, va_list arglist)
Definition error.c:238