Dependencies:   mbed

Committer:
robertcook
Date:
Wed Jun 13 18:39:46 2012 +0000
Revision:
0:32a0996dff0f

        

Who changed what in which revision?

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