Committer:
zoot661
Date:
Tue May 29 09:49:18 2012 +0000
Revision:
0:f993b6d8b1d8

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
zoot661 0:f993b6d8b1d8 1 /*****************************************************************************
zoot661 0:f993b6d8b1d8 2 * pppdebug.h - System debugging utilities.
zoot661 0:f993b6d8b1d8 3 *
zoot661 0:f993b6d8b1d8 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
zoot661 0:f993b6d8b1d8 5 * portions Copyright (c) 1998 Global Election Systems Inc.
zoot661 0:f993b6d8b1d8 6 * portions Copyright (c) 2001 by Cognizant Pty Ltd.
zoot661 0:f993b6d8b1d8 7 *
zoot661 0:f993b6d8b1d8 8 * The authors hereby grant permission to use, copy, modify, distribute,
zoot661 0:f993b6d8b1d8 9 * and license this software and its documentation for any purpose, provided
zoot661 0:f993b6d8b1d8 10 * that existing copyright notices are retained in all copies and that this
zoot661 0:f993b6d8b1d8 11 * notice and the following disclaimer are included verbatim in any
zoot661 0:f993b6d8b1d8 12 * distributions. No written agreement, license, or royalty fee is required
zoot661 0:f993b6d8b1d8 13 * for any of the authorized uses.
zoot661 0:f993b6d8b1d8 14 *
zoot661 0:f993b6d8b1d8 15 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
zoot661 0:f993b6d8b1d8 16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
zoot661 0:f993b6d8b1d8 17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
zoot661 0:f993b6d8b1d8 18 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
zoot661 0:f993b6d8b1d8 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
zoot661 0:f993b6d8b1d8 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
zoot661 0:f993b6d8b1d8 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
zoot661 0:f993b6d8b1d8 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
zoot661 0:f993b6d8b1d8 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
zoot661 0:f993b6d8b1d8 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
zoot661 0:f993b6d8b1d8 25 *
zoot661 0:f993b6d8b1d8 26 ******************************************************************************
zoot661 0:f993b6d8b1d8 27 * REVISION HISTORY (please don't use tabs!)
zoot661 0:f993b6d8b1d8 28 *
zoot661 0:f993b6d8b1d8 29 * 03-01-01 Marc Boucher <marc@mbsi.ca>
zoot661 0:f993b6d8b1d8 30 * Ported to lwIP.
zoot661 0:f993b6d8b1d8 31 * 98-07-29 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc.
zoot661 0:f993b6d8b1d8 32 * Original.
zoot661 0:f993b6d8b1d8 33 *
zoot661 0:f993b6d8b1d8 34 *****************************************************************************
zoot661 0:f993b6d8b1d8 35 */
zoot661 0:f993b6d8b1d8 36 #ifndef PPPDEBUG_H
zoot661 0:f993b6d8b1d8 37 #define PPPDEBUG_H
zoot661 0:f993b6d8b1d8 38
zoot661 0:f993b6d8b1d8 39 /* Trace levels. */
zoot661 0:f993b6d8b1d8 40 #define LOG_CRITICAL (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
zoot661 0:f993b6d8b1d8 41 #define LOG_ERR (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
zoot661 0:f993b6d8b1d8 42 #define LOG_NOTICE (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
zoot661 0:f993b6d8b1d8 43 #define LOG_WARNING (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
zoot661 0:f993b6d8b1d8 44 #define LOG_INFO (PPP_DEBUG)
zoot661 0:f993b6d8b1d8 45 #define LOG_DETAIL (PPP_DEBUG)
zoot661 0:f993b6d8b1d8 46 #define LOG_DEBUG (PPP_DEBUG)
zoot661 0:f993b6d8b1d8 47
zoot661 0:f993b6d8b1d8 48
zoot661 0:f993b6d8b1d8 49 #define TRACELCP PPP_DEBUG
zoot661 0:f993b6d8b1d8 50
zoot661 0:f993b6d8b1d8 51 #if PPP_DEBUG
zoot661 0:f993b6d8b1d8 52
zoot661 0:f993b6d8b1d8 53 #define AUTHDEBUG(a, b) LWIP_DEBUGF(a, b)
zoot661 0:f993b6d8b1d8 54 #define IPCPDEBUG(a, b) LWIP_DEBUGF(a, b)
zoot661 0:f993b6d8b1d8 55 #define UPAPDEBUG(a, b) LWIP_DEBUGF(a, b)
zoot661 0:f993b6d8b1d8 56 #define LCPDEBUG(a, b) LWIP_DEBUGF(a, b)
zoot661 0:f993b6d8b1d8 57 #define FSMDEBUG(a, b) LWIP_DEBUGF(a, b)
zoot661 0:f993b6d8b1d8 58 #define CHAPDEBUG(a, b) LWIP_DEBUGF(a, b)
zoot661 0:f993b6d8b1d8 59 #define PPPDEBUG(a, b) LWIP_DEBUGF(a, b)
zoot661 0:f993b6d8b1d8 60
zoot661 0:f993b6d8b1d8 61 #else /* PPP_DEBUG */
zoot661 0:f993b6d8b1d8 62
zoot661 0:f993b6d8b1d8 63 #define AUTHDEBUG(a, b)
zoot661 0:f993b6d8b1d8 64 #define IPCPDEBUG(a, b)
zoot661 0:f993b6d8b1d8 65 #define UPAPDEBUG(a, b)
zoot661 0:f993b6d8b1d8 66 #define LCPDEBUG(a, b)
zoot661 0:f993b6d8b1d8 67 #define FSMDEBUG(a, b)
zoot661 0:f993b6d8b1d8 68 #define CHAPDEBUG(a, b)
zoot661 0:f993b6d8b1d8 69 #define PPPDEBUG(a, b)
zoot661 0:f993b6d8b1d8 70
zoot661 0:f993b6d8b1d8 71 #endif /* PPP_DEBUG */
zoot661 0:f993b6d8b1d8 72
zoot661 0:f993b6d8b1d8 73 #endif /* PPPDEBUG_H */