Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / cmd / ipf / lib / common / verbose.c
blobe386038d1bb7672189865d95afc354c601254b14
1 /*
2 * Copyright (C) 1993-2001 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * $Id: verbose.c,v 1.6 2001/06/09 17:09:25 darrenr Exp $
7 */
9 #if defined(__STDC__)
10 # include <stdarg.h>
11 #else
12 # include <varargs.h>
13 #endif
14 #include <stdio.h>
16 #include "ipt.h"
17 #include "opts.h"
20 #if defined(__STDC__)
21 void verbose(char *fmt, ...)
22 #else
23 void verbose(fmt, va_alist)
24 char *fmt;
25 va_dcl
26 #endif
28 va_list pvar;
30 va_start(pvar, fmt);
32 if (opts & OPT_VERBOSE)
33 vprintf(fmt, pvar);
34 va_end(pvar);