Changeset 1373 for trunk/dll/errutil.c
- Timestamp:
- Jan 4, 2009, 2:49:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/errutil.c
r907 r1373 28 28 14 Aug 07 SHL Use GetMSecTimer in DbgMsg 29 29 05 Jan 08 SHL Renamed from error.c to match errutil.h 30 18 Dec 08 SHL Show thread id in DbgMsg 30 31 31 32 ***********************************************************************/ … … 36 37 37 38 #define INCL_DOS 39 #define INCL_WIN 38 40 #define INCL_DOSERRORS 39 #define INCL_ WIN41 #define INCL_DOSPROCESS // PPIB PTIB 40 42 41 43 #include "errutil.h" … … 60 62 VOID DbgMsg(PCSZ pszSrcFile, UINT uSrcLineNo, PCSZ pszFmt, ...) 61 63 { 64 PIB *ppib; 65 TIB *ptib; 66 ULONG ultid; 67 APIRET apiret; 62 68 va_list va; 63 69 … … 81 87 #endif 82 88 89 apiret = DosGetInfoBlocks(&ptib, &ppib); 90 if (apiret) 91 ultid = 0; 92 else 93 ultid = ptib->tib_ptib2->tib2_ultid; 94 83 95 // OK for source file name to be null 84 fprintf(stderr, "%s %u ", pszSrcFile ? pszSrcFile : "n/a", uSrcLineNo);96 fprintf(stderr, "%s %u (%lu)", pszSrcFile ? pszSrcFile : "n/a", uSrcLineNo, ultid); 85 97 // If format null want just file and line 86 98 if (pszFmt) {
Note:
See TracChangeset
for help on using the changeset viewer.