Sync usage with man page.
[netbsd-mini2440.git] / dist / ipf / lib / verbose.c
blob6627b05c4631292ee6ebbeece2d06706908e9d8e
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 2000-2001 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Id: verbose.c,v 1.6.4.1 2006/06/16 17:21:18 darrenr Exp
9 */
11 #if defined(__STDC__)
12 # include <stdarg.h>
13 #else
14 # include <varargs.h>
15 #endif
16 #include <stdio.h>
18 #include "ipt.h"
19 #include "opts.h"
22 #if defined(__STDC__)
23 void verbose(char *fmt, ...)
24 #else
25 void verbose(fmt, va_alist)
26 char *fmt;
27 va_dcl
28 #endif
30 va_list pvar;
32 va_start(pvar, fmt);
34 if (opts & OPT_VERBOSE)
35 vprintf(fmt, pvar);
36 va_end(pvar);