Changeset 1427
- Timestamp:
- May 3, 2004, 3:24:07 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/sys/logstrict.c
-
Property cvs2svn:cvs-rev
changed from
1.6
to1.7
r1426 r1427 272 272 " | | | Log Group.\n" 273 273 " | | | | Message Type.\n" 274 " | | | | | Function Name.\n" 275 " | | | | | | Millisconds In function (Optional).\n" 276 " v v v v v v v\n" 277 "xxxxxxxx tt nn gggg dddd function [( ms)]: message\n"); 274 " | | | | | errno in hex (0xface if not available).\n" 275 " | | | | | | Function Name.\n" 276 " | | | | | | | Millisconds In function (Optional).\n" 277 " v v v v v v v v\n" 278 "xxxxxxxx tt nn gggg dddd eeee function [( ms)]: message\n"); 278 279 DosWrite(pInst->hFile, pszMsg, cch, &cb); 279 280 } … … 646 647 { 647 648 unsigned uTS = getTimestamp(); 649 __LIBC_PTHREAD pThread = __libc_threadCurrentNoAuto(); 648 650 char *pszMsg; 649 651 int cch; … … 658 660 if (!pvInstance) 659 661 { 660 __LIBC_PTHREAD pThread;661 662 pvInstance = __libc_logDefault(); 662 663 if (!pvInstance) 663 664 return uTS; 664 pThread = __libc_threadCurrentNoAuto();665 665 if (pThread) 666 666 pcDepth = &pThread->cDefLoggerDepth; … … 696 696 697 697 va_start(args, pszFormat); 698 cch = __libc_logBuildMsg(pszMsg, pszFormat, args, "%08x %02x %02x %04x Entr %s: ", 699 uTS, getTid(), cDepth, __LIBC_LOG_GETGROUP(fGroupAndFlags), pszFunction); 698 cch = __libc_logBuildMsg(pszMsg, pszFormat, args, "%08x %02x %02x %04x Entr %04x %s: ", 699 uTS, getTid(), cDepth, __LIBC_LOG_GETGROUP(fGroupAndFlags), 700 pThread ? pThread->iErrNo : 0xface, pszFunction); 700 701 va_end(args); 701 702 … … 724 725 { 725 726 unsigned uTS = getTimestamp(); 727 __LIBC_PTHREAD pThread = __libc_threadCurrentNoAuto(); 726 728 char *pszMsg; 727 729 int cch; … … 736 738 if (!pvInstance) 737 739 { 738 __LIBC_PTHREAD pThread;739 740 pvInstance = __libc_logDefault(); 740 741 if (!pvInstance) 741 742 return; 742 pThread = __libc_threadCurrentNoAuto();743 743 if (pThread) 744 744 pcDepth = &pThread->cDefLoggerDepth; … … 782 782 783 783 va_start(args, pszFormat); 784 cch = __libc_logBuildMsg(pszMsg, pszFormat, args, "%08x %02x %02x %04x Leav %s (%2d ms): ", 785 uTS, getTid(), cDepth, __LIBC_LOG_GETGROUP(fGroupAndFlags), pszFunction, uTS - uEnterTS); 784 cch = __libc_logBuildMsg(pszMsg, pszFormat, args, "%08x %02x %02x %04x Leav %04x %s (%2d ms): ", 785 uTS, getTid(), cDepth, __LIBC_LOG_GETGROUP(fGroupAndFlags), 786 pThread ? pThread->iErrNo : 0xface, pszFunction, uTS - uEnterTS); 786 787 va_end(args); 787 788 … … 809 810 { 810 811 unsigned uTS = getTimestamp(); 812 __LIBC_PTHREAD pThread = __libc_threadCurrentNoAuto(); 811 813 char *pszMsg; 812 814 int cch; … … 820 822 if (!pvInstance) 821 823 { 822 __LIBC_PTHREAD pThread;823 824 pvInstance = __libc_logDefault(); 824 825 if (!pvInstance) 825 826 return; 826 pThread = __libc_threadCurrentNoAuto();827 827 if (pThread) 828 828 cDepth = pThread->cDefLoggerDepth; … … 851 851 va_start(args, pszFormat); 852 852 if (uEnterTS != ~0) 853 cch = __libc_logBuildMsg(pszMsg, pszFormat, args, "%08x %02x %02x %04x Mesg %s (%2d ms): ", 854 uTS, getTid(), cDepth, __LIBC_LOG_GETGROUP(fGroupAndFlags), pszFunction, uTS - uEnterTS); 853 cch = __libc_logBuildMsg(pszMsg, pszFormat, args, "%08x %02x %02x %04x Mesg %04x %s (%2d ms): ", 854 uTS, getTid(), cDepth, __LIBC_LOG_GETGROUP(fGroupAndFlags), 855 pThread ? pThread->iErrNo : 0xface, pszFunction, uTS - uEnterTS); 855 856 else 856 cch = __libc_logBuildMsg(pszMsg, pszFormat, args, "%08x %02x %02x %04x Mesg %s: ", 857 uTS, getTid(), cDepth, __LIBC_LOG_GETGROUP(fGroupAndFlags), pszFunction); 857 cch = __libc_logBuildMsg(pszMsg, pszFormat, args, "%08x %02x %02x %04x Mesg %04x %s: ", 858 uTS, getTid(), cDepth, __LIBC_LOG_GETGROUP(fGroupAndFlags), 859 pThread ? pThread->iErrNo : 0xface, pszFunction); 858 860 va_end(args); 859 861 … … 936 938 static int fEnabled = -1; 937 939 unsigned uTS = getTimestamp(); 940 __LIBC_PTHREAD pThread = __libc_threadCurrentNoAuto(); 938 941 char *pszMsg; 939 942 int cch; … … 958 961 if (!pvInstance) 959 962 { 960 __LIBC_PTHREAD pThread;961 963 pvInstance = __libc_logDefault(); 962 964 if (!pvInstance) 963 965 return; 964 pThread = __libc_threadCurrentNoAuto();965 966 if (pThread) 966 967 cDepth = pThread->cDefLoggerDepth; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.