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