1/*	$FreeBSD: stable/11/contrib/ipfilter/lib/verbose.c 369186 2021-01-31 04:32:46Z cy $	*/
2
3/*
4 * Copyright (C) 2012 by Darren Reed.
5 *
6 * See the IPFILTER.LICENCE file for details on licencing.
7 *
8 * $Id$
9 */
10
11# include <stdarg.h>
12#include <stdio.h>
13
14#include "ipf.h"
15#include "opts.h"
16
17
18void	verbose(int level, char *fmt, ...)
19{
20	va_list pvar;
21
22	va_start(pvar, fmt);
23
24	if (opts & OPT_VERBOSE)
25		vprintf(fmt, pvar);
26	va_end(pvar);
27}
28
29
30void	ipfkverbose(char *fmt, ...)
31{
32	va_list pvar;
33
34	va_start(pvar, fmt);
35
36	if (opts & OPT_VERBOSE)
37		verbose(0x1fffffff, fmt, pvar);
38	va_end(pvar);
39}
40