Changeset 1444


Ignore:
Timestamp:
May 16, 2004, 11:20:36 PM (22 years ago)
Author:
bird
Message:

libc_LogDumpHex.

Location:
trunk/src/emx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/logstrict.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1443 r1444  
    44 * InnoTek LIBC - Debug Logging and Strict Checking Features.
    55 *
    6  * InnoTek Systemberatung GmbH confidential
     6 * InnoTek Systemberatung GmbH
    77 *
    88 * Copyright (c) 2004 InnoTek Systemberatung GmbH
     
    486486
    487487/**
     488
     489
     490
     491
     492
     493
     494
     495
     496
     497
     498
     499
     500
     501
     502
    488503 * Assertion helper.
    489504 * Logs and displays (stderr) an assertion failed message.
  • trunk/src/emx/src/lib/sys/logstrict.c

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r1443 r1444  
    9393} __LIBC_XCPTREG, *__LIBC_PXCPTREG;
    9494
     95
     96
     97
     98
     99
     100
     101
     102
    95103
    96104
     
    920928
    921929/**
     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
    9221058 * Assertion helper.
    9231059 * Logs and displays (stderr) an assertion failed message.
     
    12271363                       int cchWidth, int cchPrecision, unsigned int fFlags)
    12281364{
    1229     char *          achDigits = "0123456789abcdef";
     1365    c;
    12301366    int             cchValue;
    12311367    unsigned long   ul;
     
    12361372        return NULL;
    12371373    if (fFlags & NTSF_CAPITAL)
    1238         achDigits = "0123456789ABCDEF";
     1374        ;
    12391375    if (fFlags & NTSF_LEFT)
    12401376        fFlags &= ~NTSF_ZEROPAD;
     
    12971433    do
    12981434    {
    1299         psz[i--] = achDigits[lValue % uiBase];
     1435        psz[i--] = Digits[lValue % uiBase];
    13001436        lValue /= uiBase;
    13011437    } while (lValue > 0);
     
    13251461                         int cchWidth, int cchPrecision, unsigned int fFlags)
    13261462{
    1327     char *              achDigits = "0123456789abcdef";
     1463    c;
    13281464    int                 cchValue;
    13291465    unsigned long long  ull;
     
    13341470        return NULL;
    13351471    if (fFlags & NTSF_CAPITAL)
    1336         achDigits = "0123456789ABCDEF";
     1472        ;
    13371473    if (fFlags & NTSF_LEFT)
    13381474        fFlags &= ~NTSF_ZEROPAD;
     
    13971533    do
    13981534    {
    1399         psz[i--] = achDigits[llValue % uiBase];
     1535        psz[i--] = Digits[llValue % uiBase];
    14001536        llValue /= uiBase;
    14011537    } while (llValue > 0);
     
    14211557static int      __libc_logVSNPrintf(char *pszBuffer, size_t cchBuffer, const char *pszFormat, va_list args)
    14221558{
    1423     static const char szHexChars[17] = "0123456789abcdef";
    14241559    int             rc;
    14251560    char           *pszBufferIn = pszBuffer;
     
    16831818                                        {
    16841819                                            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];
    16871822                                            cb--;
    16881823                                            cchBuffer -= 2;
     
    16941829                                                cb--;
    16951830                                                *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];
    16981833                                                cchBuffer -= 3;
    16991834                                                cch += 3;
Note: See TracChangeset for help on using the changeset viewer.