1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * Copyright (C) 1993-2001 by Darren Reed. 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * See the IPFILTER.LICENCE file for details on licencing. 5*7c478bd9Sstevel@tonic-gate * 6*7c478bd9Sstevel@tonic-gate * $Id: verbose.c,v 1.6 2001/06/09 17:09:25 darrenr Exp $ 7*7c478bd9Sstevel@tonic-gate */ 8*7c478bd9Sstevel@tonic-gate 9*7c478bd9Sstevel@tonic-gate #if defined(__STDC__) 10*7c478bd9Sstevel@tonic-gate # include <stdarg.h> 11*7c478bd9Sstevel@tonic-gate #else 12*7c478bd9Sstevel@tonic-gate # include <varargs.h> 13*7c478bd9Sstevel@tonic-gate #endif 14*7c478bd9Sstevel@tonic-gate #include <stdio.h> 15*7c478bd9Sstevel@tonic-gate 16*7c478bd9Sstevel@tonic-gate #include "ipt.h" 17*7c478bd9Sstevel@tonic-gate #include "opts.h" 18*7c478bd9Sstevel@tonic-gate 19*7c478bd9Sstevel@tonic-gate 20*7c478bd9Sstevel@tonic-gate #if defined(__STDC__) verbose(char * fmt,...)21*7c478bd9Sstevel@tonic-gatevoid verbose(char *fmt, ...) 22*7c478bd9Sstevel@tonic-gate #else 23*7c478bd9Sstevel@tonic-gate void verbose(fmt, va_alist) 24*7c478bd9Sstevel@tonic-gate char *fmt; 25*7c478bd9Sstevel@tonic-gate va_dcl 26*7c478bd9Sstevel@tonic-gate #endif 27*7c478bd9Sstevel@tonic-gate { 28*7c478bd9Sstevel@tonic-gate va_list pvar; 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate va_start(pvar, fmt); 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gate if (opts & OPT_VERBOSE) 33*7c478bd9Sstevel@tonic-gate vprintf(fmt, pvar); 34*7c478bd9Sstevel@tonic-gate va_end(pvar); 35*7c478bd9Sstevel@tonic-gate } 36