Rtos API example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pppdebug.h Source File

pppdebug.h

00001 /*****************************************************************************
00002 * pppdebug.h - System debugging utilities.
00003 *
00004 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
00005 * portions Copyright (c) 1998 Global Election Systems Inc.
00006 * portions Copyright (c) 2001 by Cognizant Pty Ltd.
00007 *
00008 * The authors hereby grant permission to use, copy, modify, distribute,
00009 * and license this software and its documentation for any purpose, provided
00010 * that existing copyright notices are retained in all copies and that this
00011 * notice and the following disclaimer are included verbatim in any 
00012 * distributions. No written agreement, license, or royalty fee is required
00013 * for any of the authorized uses.
00014 *
00015 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
00016 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00017 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
00018 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00019 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
00020 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00021 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00022 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00023 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00024 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00025 *
00026 ******************************************************************************
00027 * REVISION HISTORY (please don't use tabs!)
00028 *
00029 * 03-01-01 Marc Boucher <marc@mbsi.ca>
00030 *   Ported to lwIP.
00031 * 98-07-29 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc.
00032 *   Original.
00033 *
00034 *****************************************************************************
00035 */
00036 
00037 #include "netif/ppp/ppp_opts.h"
00038 #if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */
00039 
00040 #ifndef PPPDEBUG_H
00041 #define PPPDEBUG_H
00042 
00043 /* Trace levels. */
00044 #define LOG_CRITICAL  (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
00045 #define LOG_ERR       (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
00046 #define LOG_NOTICE    (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
00047 #define LOG_WARNING   (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
00048 #define LOG_INFO      (PPP_DEBUG)
00049 #define LOG_DETAIL    (PPP_DEBUG)
00050 #define LOG_DEBUG     (PPP_DEBUG)
00051 
00052 #if PPP_DEBUG
00053 
00054 #define MAINDEBUG(a)    LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a)
00055 #define SYSDEBUG(a)     LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a)
00056 #define FSMDEBUG(a)     LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a)
00057 #define LCPDEBUG(a)     LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a)
00058 #define IPCPDEBUG(a)    LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a)
00059 #define IPV6CPDEBUG(a)  LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a)
00060 #define UPAPDEBUG(a)    LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a)
00061 #define CHAPDEBUG(a)    LWIP_DEBUGF(LWIP_DBG_LEVEL_WARNING, a)
00062 #define PPPDEBUG(a, b)  LWIP_DEBUGF(a, b)
00063 
00064 #else /* PPP_DEBUG */
00065 
00066 #define MAINDEBUG(a)
00067 #define SYSDEBUG(a)
00068 #define FSMDEBUG(a)
00069 #define LCPDEBUG(a)
00070 #define IPCPDEBUG(a)
00071 #define IPV6CPDEBUG(a)
00072 #define UPAPDEBUG(a)
00073 #define CHAPDEBUG(a)
00074 #define PPPDEBUG(a, b)
00075 
00076 #endif /* PPP_DEBUG */
00077 
00078 #endif /* PPPDEBUG_H */
00079 
00080 #endif /* PPP_SUPPORT */