hattori&ide

Dependencies:   mbed

Committer:
hattori_atsushi
Date:
Sun Dec 18 08:16:01 2022 +0000
Revision:
0:f77369cabd75
hattori

Who changed what in which revision?

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