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-2024 OpenVPN Inc <sales@openvpn.net>
6  * Copyright (C) 2018-2024 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, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21 
22 #include "error.h"
23 
24 
25 /* Globals */
26 unsigned int x_debug_level; /* GLOBAL */
27 
28 
29 void
30 x_msg(const unsigned int flags, const char *format, ...)
31 {
32  va_list arglist;
33  va_start(arglist, format);
34  x_msg_va(flags, format, arglist);
35  va_end(arglist);
36 }
x_msg
void x_msg(const unsigned int flags, const char *format,...)
Definition: error.c:213
x_msg_va
void x_msg_va(const unsigned int flags, const char *format, va_list arglist)
Definition: error.c:234
x_debug_level
unsigned int x_debug_level
Definition: error.c:52
error.h