repo.or.cz
/
unleashed
/
tickless.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add UNLEASHED_OBJ to unleashed.mk
[unleashed/tickless.git]
/
usr
/
src
/
cmd
/
ipf
/
lib
/
common
/
debug.c
blob
9f3f4cc84192522107eddb2cac832bda2b8f22ff
1
/*
2
* Copyright (C) 1993-2001 by Darren Reed.
3
*
4
* See the IPFILTER.LICENCE file for details on licencing.
5
*
6
* $Id: debug.c,v 1.6 2001/06/09 17:09:24 darrenr Exp $
7
*/
8
9
#if defined(__STDC__)
10
# include <stdarg.h>
11
#else
12
# include <varargs.h>
13
#endif
14
#include <stdio.h>
15
16
#include
"ipt.h"
17
#include
"opts.h"
18
19
20
#ifdef __STDC__
21
void
debug
(
char
*
fmt
, ...)
22
#else
23
void
debug
(
fmt
,
va_alist
)
24
char
*
fmt
;
25
va_dcl
26
#endif
27
{
28
va_list
pvar
;
29
30
va_start
(
pvar
,
fmt
);
31
32
if
(
opts
&
OPT_DEBUG
)
33
vprintf
(
fmt
,
pvar
);
34
va_end
(
pvar
);
35
}