dbg.c - bmf - bmf (Bayesian Mail Filter) 0.9.4 fork + patches | |
git clone git://git.codemadness.org/bmf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
dbg.c (534B) | |
--- | |
1 /* $Id: dbg.c,v 1.3 2002/10/19 08:30:57 tommy Exp $ */ | |
2 | |
3 /* | |
4 * Copyright (c) 2002 Tom Marshall <[email protected]> | |
5 * | |
6 * This program is free software. It may be distributed under the terms | |
7 * in the file LICENSE, found in the top level of the distribution. | |
8 * | |
9 * dbg.c: debug functions for bmf. | |
10 */ | |
11 | |
12 #include <stdarg.h> | |
13 | |
14 #include "config.h" | |
15 #include "dbg.h" | |
16 | |
17 uint g_verbose = 0; | |
18 | |
19 void | |
20 verbose(int level, const char *fmt,...) | |
21 { | |
22 va_list v; | |
23 | |
24 if (g_verbose >= level) { | |
25 va_start(v, fmt); | |
26 vfprintf(stderr, fmt, v); | |
27 va_end(v); | |
28 } | |
29 } |