~ubuntu-branches/ubuntu/trusty/sblim-sfcb/trusty-proposed

« back to all changes in this revision

Viewing changes to trace.h

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2009-06-08 12:04:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090608120449-byfplk09rqz8rtg6
Tags: 1.3.3-0ubuntu1
* New upstream release.
* debian/rules: Removed rpath hacks, SFCB default build handles that now.
* Removed 1934753-remove-assignment.diff, now upstream.
* Refreshed patch cim-schema-location.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "mlog.h"
27
27
 
28
28
#ifdef SFCB_DEBUG
 
29
 
29
30
#define _SFCB_TRACE(LEVEL,STR) \
30
31
  if ((_sfcb_trace_mask & __traceMask) && (LEVEL<=_sfcb_debug) && (LEVEL>0) ) \
31
32
  _sfcb_trace(LEVEL,__FILE__,__LINE__,_sfcb_format_trace STR);
80
81
extern void _sfcb_set_trace_file(char * file);
81
82
extern void _sfcb_trap(int n);
82
83
 
83
 
/* for trace output colorization */ 
84
 
#define RESET           0
85
 
#define BRIGHT          1
86
 
#define DIM             2
87
 
#define REVERSE         7
88
 
#define BLACK           0
89
 
#define RED             1
90
 
#define GREEN           2
91
 
#define YELLOW          3
92
 
#define BLUE            4
93
 
#define MAGENTA         5
94
 
#define CYAN            6
95
 
#define WHITE           7
96
 
void changeTextColor(int reset);
97
 
int colorTrace;
98
 
 
99
84
#else
100
85
#define _SFCB_TRACE_FUNCTION(n,f)
101
86
#define _SFCB_TRACE(LEVEL,STR)
120
105
   int code;
121
106
} TraceId;
122
107
 
 
108
/* for trace output colorization */ 
 
109
#define RESET           0
 
110
#define BRIGHT          1
 
111
#define DIM             2
 
112
#define REVERSE         7
 
113
#define BLACK           0
 
114
#define RED             1
 
115
#define GREEN           2
 
116
#define YELLOW          3
 
117
#define BLUE            4
 
118
#define MAGENTA         5
 
119
#define CYAN            6
 
120
#define WHITE           7
 
121
void changeTextColor(int reset);
 
122
int colorTrace;
 
123
 
 
124
#define MAX_MSG_SIZE 1024 /* max length of trace message */
 
125
 
123
126
#define TRACE_PROVIDERMGR       1
124
127
#define TRACE_PROVIDERDRV       2
125
128
#define TRACE_CIMXMLPROC        4
152
155
extern int terminating;
153
156
 
154
157
#endif
 
158
#ifdef UNITTEST
 
159
extern int trace_test();
 
160
#endif
155
161