Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
pppdebug.h
00001 /***************************************************************************** 00002 * /@code 00003 * 00004 * pppdebug.h - System debugging utilities. 00005 * 00006 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc. 00007 * portions Copyright (c) 1998 Global Election Systems Inc. 00008 * portions Copyright (c) 2001 by Cognizant Pty Ltd. 00009 * 00010 * The authors hereby grant permission to use, copy, modify, distribute, 00011 * and license this software and its documentation for any purpose, provided 00012 * that existing copyright notices are retained in all copies and that this 00013 * notice and the following disclaimer are included verbatim in any 00014 * distributions. No written agreement, license, or royalty fee is required 00015 * for any of the authorized uses. 00016 * 00017 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR 00018 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00019 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 00020 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00021 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 00022 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00023 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00024 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00025 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 00026 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00027 * 00028 ****************************************************************************** 00029 * REVISION HISTORY (please don't use tabs!) 00030 * 00031 * 03-01-01 Marc Boucher <marc@mbsi.ca> 00032 * Ported to lwIP. 00033 * 98-07-29 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc. 00034 * Original. 00035 * 00036 * /@endcode 00037 ***************************************************************************** 00038 */ 00039 00040 #include "ppp_opts.h" 00041 #if PPP_SUPPORT /* don't build if not configured for use in ppp_opts.h */ 00042 00043 #ifndef PPPDEBUG_H 00044 #define PPPDEBUG_H 00045 00046 #ifdef __cplusplus 00047 extern "C" { 00048 #endif 00049 00050 #if PPP_DEBUG 00051 #if MBED_CONF_MBED_TRACE_ENABLE 00052 #include "mbed_trace.h" 00053 #define TRACE_GROUP "ppp" 00054 #define PPP_DEBUGF(level, message) tr_info message 00055 #else 00056 #define PPP_DEBUGF(level, message) printf message 00057 #endif 00058 #else 00059 #define PPP_DEBUGF(level, message) 00060 #endif 00061 00062 #define PPP_DBG_LEVEL_ALL 0x00 00063 #define PPP_DBG_LEVEL_WARNING 0x01 00064 #define PPP_DBG_LEVEL_SERIOUS 0x02 00065 #define PPP_DBG_LEVEL_SEVERE 0x03 00066 00067 /* Trace levels. */ 00068 #define LOG_CRITICAL (PPP_DEBUG | PPP_DBG_LEVEL_SEVERE) 00069 #define LOG_ERR (PPP_DEBUG | PPP_DBG_LEVEL_SEVERE) 00070 #define LOG_NOTICE (PPP_DEBUG | PPP_DBG_LEVEL_WARNING) 00071 #define LOG_WARNING (PPP_DEBUG | PPP_DBG_LEVEL_WARNING) 00072 #define LOG_INFO (PPP_DEBUG) 00073 #define LOG_DETAIL (PPP_DEBUG) 00074 #define LOG_DEBUG (PPP_DEBUG) 00075 00076 #if PPP_DEBUG 00077 00078 #define MAINDEBUG(a) PPP_DEBUGF(PPP_DBG_LEVEL_WARNING, a) 00079 #define SYSDEBUG(a) PPP_DEBUGF(PPP_DBG_LEVEL_WARNING, a) 00080 #define FSMDEBUG(a) PPP_DEBUGF(PPP_DBG_LEVEL_WARNING, a) 00081 #define LCPDEBUG(a) PPP_DEBUGF(PPP_DBG_LEVEL_WARNING, a) 00082 #define IPCPDEBUG(a) PPP_DEBUGF(PPP_DBG_LEVEL_WARNING, a) 00083 #define IPV6CPDEBUG(a) PPP_DEBUGF(PPP_DBG_LEVEL_WARNING, a) 00084 #define UPAPDEBUG(a) PPP_DEBUGF(PPP_DBG_LEVEL_WARNING, a) 00085 #define CHAPDEBUG(a) PPP_DEBUGF(PPP_DBG_LEVEL_WARNING, a) 00086 #define PPPDEBUG(a, b) PPP_DEBUGF(a, b) 00087 00088 #else /* PPP_DEBUG */ 00089 00090 #define MAINDEBUG(a) 00091 #define SYSDEBUG(a) 00092 #define FSMDEBUG(a) 00093 #define LCPDEBUG(a) 00094 #define IPCPDEBUG(a) 00095 #define IPV6CPDEBUG(a) 00096 #define UPAPDEBUG(a) 00097 #define CHAPDEBUG(a) 00098 #define PPPDEBUG(a, b) 00099 00100 #endif /* PPP_DEBUG */ 00101 00102 #ifdef __cplusplus 00103 } 00104 #endif 00105 00106 #endif /* PPPDEBUG_H */ 00107 00108 #endif /* PPP_SUPPORT */
Generated on Tue Jul 12 2022 13:54:42 by
