Go to the documentation of this file. 1 #ifndef _XRDOSSCSI_TRACE_H 2 #define _XRDOSSCSI_TRACE_H 38 #define TRACE_ALL 0x0fff 39 #define TRACE_Warn 0x0001 40 #define TRACE_Info 0x0002 41 #define TRACE_Debug 0x0800 47 #define QTRACE(act) OssCsiTrace.What & TRACE_ ## act 49 #define TRACE(act, x) \ 51 {OssCsiTrace.Beg(epname,tident); cerr <<x; OssCsiTrace.End();} 53 #define TRACEReturn(type, ecode, msg) \ 54 {TRACE(type, "err " <<ecode <<msg); return ecode;} 56 #define DEBUG(y) if (QTRACE(Debug)) \ 57 {OssCsiTrace.Beg(epname); cerr <<y; OssCsiTrace.End();} 59 #define EPNAME(x) static const char *epname = x; 66 #define TRACEReturn(type, ecode, msg) return ecode