Go to the documentation of this file. 1 #ifndef _XRDOSS_TRACE_H
2 #define _XRDOSS_TRACE_H
19 #define TRACE_ALL 0x0fff
20 #define TRACE_Opendir 0x0001
21 #define TRACE_Open 0x0002
22 #define TRACE_AIO 0x0004
23 #define TRACE_Debug 0x0800
29 #define QTRACE(act) OssTrace.What & TRACE_ ## act
31 #define TRACE(act, x) \
33 {OssTrace.Beg(epname,tident); cerr <<x; OssTrace.End();}
35 #define TRACEReturn(type, ecode, msg) \
36 {TRACE(type, "err " <<ecode <<msg); return ecode;}
38 #define DEBUG(y) if (QTRACE(Debug)) \
39 {OssTrace.Beg(epname); cerr <<y; OssTrace.End();}
41 #define EPNAME(x) static const char *epname = x;
48 #define TRACEReturn(type, ecode, msg) return ecode