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