Changeset 1444
- Timestamp:
- May 16, 2004, 11:20:36 PM (22 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 2 edited
-
include/InnoTekLIBC/logstrict.h (modified) (2 diffs, 1 prop)
-
src/lib/sys/logstrict.c (modified) (11 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/InnoTekLIBC/logstrict.h
-
Property cvs2svn:cvs-rev
changed from
1.3to1.4
r1443 r1444 4 4 * InnoTek LIBC - Debug Logging and Strict Checking Features. 5 5 * 6 * InnoTek Systemberatung GmbH confidential6 * InnoTek Systemberatung GmbH 7 7 * 8 8 * Copyright (c) 2004 InnoTek Systemberatung GmbH … … 486 486 487 487 /** 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 488 503 * Assertion helper. 489 504 * Logs and displays (stderr) an assertion failed message. -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/logstrict.c
-
Property cvs2svn:cvs-rev
changed from
1.8to1.9
r1443 r1444 93 93 } __LIBC_XCPTREG, *__LIBC_PXCPTREG; 94 94 95 96 97 98 99 100 101 102 95 103 96 104 … … 920 928 921 929 /** 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 922 1058 * Assertion helper. 923 1059 * Logs and displays (stderr) an assertion failed message. … … 1227 1363 int cchWidth, int cchPrecision, unsigned int fFlags) 1228 1364 { 1229 c har * achDigits = "0123456789abcdef";1365 c; 1230 1366 int cchValue; 1231 1367 unsigned long ul; … … 1236 1372 return NULL; 1237 1373 if (fFlags & NTSF_CAPITAL) 1238 achDigits = "0123456789ABCDEF";1374 ; 1239 1375 if (fFlags & NTSF_LEFT) 1240 1376 fFlags &= ~NTSF_ZEROPAD; … … 1297 1433 do 1298 1434 { 1299 psz[i--] = achDigits[lValue % uiBase];1435 psz[i--] = Digits[lValue % uiBase]; 1300 1436 lValue /= uiBase; 1301 1437 } while (lValue > 0); … … 1325 1461 int cchWidth, int cchPrecision, unsigned int fFlags) 1326 1462 { 1327 c har * achDigits = "0123456789abcdef";1463 c; 1328 1464 int cchValue; 1329 1465 unsigned long long ull; … … 1334 1470 return NULL; 1335 1471 if (fFlags & NTSF_CAPITAL) 1336 achDigits = "0123456789ABCDEF";1472 ; 1337 1473 if (fFlags & NTSF_LEFT) 1338 1474 fFlags &= ~NTSF_ZEROPAD; … … 1397 1533 do 1398 1534 { 1399 psz[i--] = achDigits[llValue % uiBase];1535 psz[i--] = Digits[llValue % uiBase]; 1400 1536 llValue /= uiBase; 1401 1537 } while (llValue > 0); … … 1421 1557 static int __libc_logVSNPrintf(char *pszBuffer, size_t cchBuffer, const char *pszFormat, va_list args) 1422 1558 { 1423 static const char szHexChars[17] = "0123456789abcdef";1424 1559 int rc; 1425 1560 char *pszBufferIn = pszBuffer; … … 1683 1818 { 1684 1819 char ch = *pb++; 1685 *pszBuffer++ = szHexChars[(unsigned)ch >> 4];1686 *pszBuffer++ = szHexChars[(unsigned)ch & 0xf];1820 *pszBuffer++ = s[(unsigned)ch >> 4]; 1821 *pszBuffer++ = s[(unsigned)ch & 0xf]; 1687 1822 cb--; 1688 1823 cchBuffer -= 2; … … 1694 1829 cb--; 1695 1830 *pszBuffer++ = ' '; 1696 *pszBuffer++ = szHexChars[(unsigned)ch >> 4];1697 *pszBuffer++ = szHexChars[(unsigned)ch & 0xf];1831 *pszBuffer++ = s[(unsigned)ch >> 4]; 1832 *pszBuffer++ = s[(unsigned)ch & 0xf]; 1698 1833 cchBuffer -= 3; 1699 1834 cch += 3; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
