/ src / emc / nml_intf / debugflags.h
debugflags.h
 1  /*    This is a component of LinuxCNC
 2   *    Copyright 2011, 2012, 2013 Michael Haberler <git@mah.priv.at>,
 3   *    Sebastian Kuzminsky <seb@highlab.com>
 4   *
 5   *    This program is free software; you can redistribute it and/or modify
 6   *    it under the terms of the GNU General Public License as published by
 7   *    the Free Software Foundation; either version 2 of the License, or
 8   *    (at your option) any later version.
 9   *
10   *    This program is distributed in the hope that it will be useful,
11   *    but WITHOUT ANY WARRANTY; without even the implied warranty of
12   *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   *    GNU General Public License for more details.
14   *
15   *    You should have received a copy of the GNU General Public License
16   *    along with this program; if not, write to the Free Software
17   *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18   */
19  // factored out from emcglb.h so subsystems not requiring the
20  // emcglb.h defines may include them as well
21  
22  
23  
24  #define EMC_DEBUG_CONFIG            0x00000002
25  #define EMC_DEBUG_VERSIONS          0x00000008
26  #define EMC_DEBUG_TASK_ISSUE        0x00000010
27  #define EMC_DEBUG_NML               0x00000040
28  #define EMC_DEBUG_MOTION_TIME       0x00000080
29  #define EMC_DEBUG_INTERP            0x00000100
30  #define EMC_DEBUG_RCS               0x00000200
31  #define EMC_DEBUG_INTERP_LIST       0x00000800
32  #define EMC_DEBUG_IOCONTROL         0x00001000
33  #define EMC_DEBUG_OWORD             0x00002000
34  #define EMC_DEBUG_REMAP             0x00004000
35  #define EMC_DEBUG_PYTHON            0x00008000
36  #define EMC_DEBUG_NAMEDPARAM        0x00010000
37  #define EMC_DEBUG_GDBONSIGNAL       0x00020000
38  #define EMC_DEBUG_PYTHON_TASK       0x00040000
39  
40  // not interpreted by EMC.
41  #define EMC_DEBUG_USER1             0x10000000
42  #define EMC_DEBUG_USER2             0x20000000
43  
44  #define EMC_DEBUG_UNCONDITIONAL     0x40000000  // always logged
45  #define EMC_DEBUG_ALL               0x7FFFFFFF	/* it's an int for %i to work
46  						 */
47  // debug prefix flags
48  #define LOG_TIME  1
49  #define LOG_PID   2
50  #define LOG_FILENAME 4 // and line