1 /* 2 * Copyright (C) 1997-2009, Michael Jennings 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a copy 5 * of this software and associated documentation files (the "Software"), to 6 * deal in the Software without restriction, including without limitation the 7 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 8 * sell copies of the Software, and to permit persons to whom the Software is 9 * furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies of the Software, its documentation and marketing & publicity 13 * materials, and acknowledgment shall be given in the documentation, materials 14 * and software packages that this Software was used. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 */ 23 24 #ifndef _ETERM_DEBUG_H 25 # define _ETERM_DEBUG_H 26 27 /* Debugging macros/defines which set the debugging levels for each output type. 28 To change the debugging level at which something appears, change the number in 29 both the DEBUG_ definition and the D_ macro (if there is one). -- mej */ 30 31 # define DEBUG_SCREEN 1 32 # define D_SCREEN(x) DPRINTF1(x) 33 # define DEBUG_CMD 1 34 # define D_CMD(x) DPRINTF1(x) 35 # define DEBUG_TTY 1 36 # define D_TTY(x) DPRINTF1(x) 37 # define DEBUG_SELECTION 1 38 # define D_SELECT(x) DPRINTF1(x) 39 # define DEBUG_UTMP 1 40 # define D_UTMP(x) DPRINTF1(x) 41 # define DEBUG_IMLIB 1 42 # define D_IMLIB(x) DPRINTF1(x) 43 # define DEBUG_PIXMAP 1 44 # define D_PIXMAP(x) DPRINTF1(x) 45 # define DEBUG_EVENTS 1 46 # define D_EVENTS(x) DPRINTF1(x) 47 48 # define DEBUG_X11 2 49 # define D_X11(x) DPRINTF2(x) 50 # define DEBUG_ENL 2 51 # define D_ENL(x) DPRINTF2(x) 52 # define DEBUG_SCROLLBAR 2 53 # define D_SCROLLBAR(x) DPRINTF2(x) 54 # define DEBUG_BBAR 2 55 # define D_BBAR(x) DPRINTF2(x) 56 # define DEBUG_TIMER 2 57 # define D_TIMER(x) DPRINTF2(x) 58 # define DEBUG_SCRIPT 2 59 # define D_SCRIPT(x) DPRINTF2(x) 60 61 # define DEBUG_MENU 3 62 # define D_MENU(x) DPRINTF3(x) 63 # define DEBUG_FONT 3 64 # define D_FONT(x) DPRINTF3(x) 65 # define DEBUG_TTYMODE 3 66 # define D_TTYMODE(x) DPRINTF3(x) 67 # define DEBUG_COLORS 3 68 # define D_COLORS(x) DPRINTF3(x) 69 70 # define DEBUG_ACTIONS 4 71 # define D_ACTIONS(x) DPRINTF4(x) 72 # define DEBUG_ESCREEN 4 73 # define D_ESCREEN(x) DPRINTF4(x) 74 75 # define DEBUG_PROFILE 5 76 # define D_PROFILE(x) DPRINTF5(x) 77 78 # define DEBUG_VT 6 79 # define D_VT(x) DPRINTF6(x) 80 81 # define DEBUG_ALL_SCREEN 7 82 # define D_ALL_SCREEN(x) DPRINTF7(x) 83 84 # define DEBUG_X 9 85 86 #endif /* _ETERM_DEBUG_H */ 87