Dependencies:   mbed

Dependents:   TCP

Committer:
slowness
Date:
Tue Sep 06 18:05:46 2011 +0000
Revision:
0:58c3d014a4e7

        

Who changed what in which revision?

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