1 /*****************************************************************************
\r
2 * pppdebug.h - System debugging utilities.
\r
4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
\r
5 * portions Copyright (c) 1998 Global Election Systems Inc.
\r
6 * portions Copyright (c) 2001 by Cognizant Pty Ltd.
\r
8 * The authors hereby grant permission to use, copy, modify, distribute,
\r
9 * and license this software and its documentation for any purpose, provided
\r
10 * that existing copyright notices are retained in all copies and that this
\r
11 * notice and the following disclaimer are included verbatim in any
\r
12 * distributions. No written agreement, license, or royalty fee is required
\r
13 * for any of the authorized uses.
\r
15 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
\r
16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
\r
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
\r
18 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
\r
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
\r
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
\r
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
\r
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
\r
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
\r
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\r
26 ******************************************************************************
\r
27 * REVISION HISTORY (please don't use tabs!)
\r
29 * 03-01-01 Marc Boucher <marc@mbsi.ca>
\r
31 * 98-07-29 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc.
\r
34 *****************************************************************************
\r
39 /************************
\r
40 *** PUBLIC DATA TYPES ***
\r
41 ************************/
\r
54 /***********************
\r
55 *** PUBLIC FUNCTIONS ***
\r
56 ***********************/
\r
58 * ppp_trace - a form of printf to send tracing information to stderr
\r
60 void ppp_trace(int level, const char *format,...);
\r
64 #define AUTHDEBUG(a) ppp_trace a
\r
65 #define IPCPDEBUG(a) ppp_trace a
\r
66 #define UPAPDEBUG(a) ppp_trace a
\r
67 #define LCPDEBUG(a) ppp_trace a
\r
68 #define FSMDEBUG(a) ppp_trace a
\r
69 #define CHAPDEBUG(a) ppp_trace a
\r
70 #define PPPDEBUG(a) ppp_trace a
\r
76 #define AUTHDEBUG(a)
\r
77 #define IPCPDEBUG(a)
\r
78 #define UPAPDEBUG(a)
\r
81 #define CHAPDEBUG(a)
\r
89 #endif /* PPPDEBUG_H */
\r