"Fossies" - the Fresh Open Source Software Archive 
Member "srg-1.3.6/include/debug.h" (5 Aug 2009, 2139 Bytes) of package /linux/privat/old/srg-1.3.6.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /* Wand Project - Ethernet Over UDP
2 * $Id: debug.h 2 2003-04-03 10:37:04Z mattgbrown $
3 * Licensed under the GPL, see file COPYING in the top level for more
4 * details.
5 */
6
7 #ifndef DEBUG_H
8 #define DEBUG_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 /* The grand unified output system. All output should go through this
15 * function.
16 *
17 * You must specify both a module name that this output has come from
18 * and the level of the message.
19 *
20 * The module names are all defined later
21 *
22 * The levels are a integer between 0 and 15
23 *
24 * 0 being the quietest and 15 being the most verbose.
25 *
26 * 0 - Absolute SILENCE. Should only ever be used for special temporary
27 * applications. Never in final code.
28 *
29 * SYSLOG level of this alert = LOG_ALERT
30 *
31 * 1 - Used for failure messages and extream crirical conditions
32 *
33 * SYSLOG level of this alert = LOG_ALERT
34 *
35 * 2 - Critical conditions
36 *
37 * SYSLOG level of this alert = LOG_CRIT
38 *
39 * 3 - Error conditions
40 *
41 * SYSLOG level of this alert = LOG_ERR
42 *
43 * 4 - Warning conditions
44 *
45 * SYSLOG level of this alert = LOG_WARNING
46 *
47 * 5 - Normal, but significant, condition
48 *
49 * SYSLOG level of this alert = LOG_NOTICE
50 *
51 * 6 - Informational message
52 *
53 * SYSLOG level of this alert = LOG_INFO
54 *
55 * 7 - Debug messages
56 *
57 * SYSLOG level of this alert = LOG_DEBUG
58 *
59 * 8 - 15 Increasingly verbose debuggind
60 *
61 * SYSLOG level of this alert = LOG_DEBUG
62 */
63
64 void logger(int module, int level, const char *format, ...);
65
66 /* Define the module names */
67
68 #define MOD_MISC 0 /* Misc output. Hopefully used less and less */
69 #define MOD_CONFIG 1 /* Output for the configuration parsing. */
70 #define MOD_DRIVERS 2 /* Anything to do with etud's drivers. */
71 #define MOD_INIT 3 /* Anything during code setup and initialisation */
72 #define MOD_IPC 4 /* wand <-> etud IPC control */
73 #define MOD_NETWORK 5 /* Anything related to the networking code */
74 #define MOD_IF 6 /* Anything related to the interfaces code */
75 #define MOD_LIST 7 /* All the stuff to do with etud's list code */
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif /* DEBUG_H */
82
83
84