Dependents:   RTnoV3 RTnoV3_LED RTnoV3_Template RTnoV3_ADC ... more

Committer:
sherckuith
Date:
Sat Dec 31 11:25:27 2011 +0000
Revision:
0:479ce5546098
Ethernet

Who changed what in which revision?

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