Definition at line 61 of file Debug.cxx.
References DebugDM_Adapter, DebugDM_Alloc, DebugDM_Database, DebugDM_Gateway, DebugDM_HashIndex, DebugDM_Lock, DebugDM_Network, DebugDM_Predicate, DebugDM_Process, DebugDM_RedoLog, DebugDM_SqlLog, DebugDM_SystemDatabase, DebugDM_Table, DebugDM_TableIterator, DebugDM_Transaction, DebugDM_UndoLog, DebugDM_VarAlloc, DM_Adapter, DM_Alloc, DM_Database, DM_Gateway, DM_HashIndex, DM_Iterator, DM_Lock, DM_Network, DM_Predicate, DM_Process, DM_RedoLog, DM_SqlLog, DM_SystemDatabase, DM_Table, DM_Transaction, DM_UndoLog, DM_VarAlloc, os::getpid(), os::getthrid(), moduleNames, and os::write().
00062 {
00063 switch(module) {
00064 case DM_Alloc: { if (!DebugDM_Alloc) return 1; break; }
00065 case DM_VarAlloc: { if (!DebugDM_VarAlloc) return 1; break; }
00066 case DM_Lock: { if (!DebugDM_Lock) return 1; break; }
00067 case DM_Transaction: { if (!DebugDM_Transaction) return 1; break; }
00068 case DM_UndoLog: { if (!DebugDM_UndoLog) return 1; break; }
00069 case DM_RedoLog: { if (!DebugDM_RedoLog) return 1; break; }
00070 case DM_HashIndex: { if (!DebugDM_HashIndex) return 1; break; }
00071 case DM_SystemDatabase: { if (!DebugDM_SystemDatabase) return 1; break; }
00072 case DM_Database: { if (!DebugDM_Database) return 1; break; }
00073 case DM_Table: { if (!DebugDM_Table) return 1; break; }
00074 case DM_Iterator: { if (!DebugDM_TableIterator) return 1; break; }
00075 case DM_Predicate: { if (!DebugDM_Predicate) return 1; break; }
00076 case DM_Process: { if (!DebugDM_Process) return 1; break; }
00077 case DM_Network: { if (!DebugDM_Network) return 1; break; }
00078 case DM_Gateway: { if (!DebugDM_Gateway) return 1; break; }
00079 case DM_Adapter: { if (!DebugDM_Adapter) return 1; break; }
00080 case DM_SqlLog: { if (!DebugDM_SqlLog) return 1; break; }
00081
00082 }
00083
00084 va_list ap;
00085 char mesgBuf[1024];
00086
00087 sprintf(mesgBuf, "D:%s:%d:%lu:%s:%d:", moduleNames[module],
00088 os::getpid(), os::getthrid(), fname, lno);
00089 os::write(1, mesgBuf, strlen(mesgBuf));
00090
00091 va_start(ap, format);
00092
00093 int err = ::vsnprintf(mesgBuf, sizeof(mesgBuf), format,ap);
00094 if(err < 0) {
00095 return err;
00096 }
00097 os::write(1, mesgBuf, strlen(mesgBuf));
00098 strcpy(mesgBuf,"\n");
00099 os::write(1, mesgBuf, strlen(mesgBuf));
00100
00101 return 0;
00102 }
Here is the call graph for this function: