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