Lines Matching refs:debug

11 SM_RCSID("@(#)$Id: debug.c,v 1.33 2013-11-22 20:51:42 ca Exp $")
15 ** For documentation, see debug.html.
28 #include <sm/debug.h>
51 ** SM_DEBUG_FILE -- Returns current debug file pointer.
57 ** current debug file pointer.
67 ** SM_DEBUG_SETFILE -- Sets debug file pointer.
70 ** fp -- new debug file pointer.
87 ** SM_DEBUG_CLOSE -- Close debug file pointer.
110 ** SM_DPRINTF -- printf() for debug output.
121 "@(#)$Debug: sm_trace_pid_time - print pid and time in debug $");
163 ** SM_DFLUSH -- Flush debug output.
179 ** This is the internal database of debug settings.
225 SM_DEBUG_T *debug;
227 for (debug = SmDebugInitialized;
228 debug != NULL;
229 debug = debug->debug_next)
231 debug->debug_level = SM_DEBUG_UNKNOWN;
237 ** SM_DEBUG_ADDSETTING_X -- add an entry to the database of debug settings
242 ** the debug package, so it should either be a string
271 ** PARSE_NAMED_SETTING_X -- process a symbolic debug setting
323 ** SM_DEBUG_ADDSETTINGS_X -- process a list of debug options
326 ** s -- a list of debug settings, eg the argument to the
345 ** updates the database of debug settings.
366 ** SM_DEBUG_LOADLEVEL -- Get activation level of the specified debug object.
369 ** debug -- debug object.
372 ** Activation level of the specified debug object.
375 ** Ensures that the debug object is initialized.
379 sm_debug_loadlevel(debug)
380 SM_DEBUG_T *debug;
382 if (debug->debug_level == SM_DEBUG_UNKNOWN)
388 if (sm_match(debug->debug_name, s->ds_pattern))
390 debug->debug_level = s->ds_level;
394 debug->debug_level = 0;
396 debug->debug_next = SmDebugInitialized;
397 SmDebugInitialized = debug;
399 return (int) debug->debug_level;
406 ** debug -- debug object.
410 ** true iff the activation level of the specified debug
414 ** Ensures that the debug object is initialized.
418 sm_debug_loadactive(debug, level)
419 SM_DEBUG_T *debug;
422 return sm_debug_loadlevel(debug) >= level;