1 /* $FreeBSD$ */ 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 18 void 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 30 void 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