2 * $Id: debug.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PITH_DEBUG_INCLUDED
17 #define PITH_DEBUG_INCLUDED
20 /*======================================================================
21 Macros for debug printfs
23 1 logs only highest level events and errors
24 2 logs events like file writes
29 7 logs details of command execution (7 is highest to run any production)
30 allows core dumps without cleaning up terminal modes
32 9 logs gross details of command execution
39 #define dprint(x) { output_debug_msg x ; }
41 /* global debugging level */
44 /* mandatory to implement stubs */
45 void output_debug_msg(int, char *fmt
, ...);
46 void dump_configuration(int);
58 #endif /* PITH_DEBUG_INCLUDED */