Committer:
mbed714
Date:
Sat Sep 18 23:05:49 2010 +0000
Revision:
0:d616ece2d859

        

Who changed what in which revision?

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