IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1715


Ignore:
Timestamp:
Sep 7, 2004, 2:15:16 PM (22 years ago)
Author:
desonia
Message:

changed error-text define names to indicate the file where used, not function.

Location:
trunk/psLib/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.c

    r1696 r1715  
    99*  @author Robert Lupton, Princeton University
    1010*
    11 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-09-07 19:05:07 $
     11*  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-09-08 00:15:16 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    104104    if (ptr->refCounter < 1) {
    105105        psErrorMsg(ERRORNAME_PREFIX "memProblemCallbackDefault", false, PS_ERR_MEMORY_CORRUPTION,
    106                    PS_ERRORTEXT_memProblemCallbackDefault_MULTIPLE_FREE,
     106                   PS_ERRORTEXT_psMemory_MULTIPLE_FREE,
    107107                   ptr->id, ptr->file, ptr->lineno, file, lineno);
    108108    }
     
    232232    if (m == NULL) {
    233233        psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,
    234                    PS_ERRORTEXT_checkMemBlock_NULL_BLOCK);
     234                   PS_ERRORTEXT_psMemory_NULL_BLOCK);
    235235        return 1;
    236236    }
     
    239239        // using an unreferenced block of memory, are you?
    240240        psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,
    241                    PS_ERRORTEXT_checkMemBlock_DEREF_USE,
     241                   PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE,
    242242                   m->id);
    243243        return 1;
     
    246246    if (m->startblock != P_PS_MEMMAGIC || m->endblock != P_PS_MEMMAGIC) {
    247247        psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,
    248                    PS_ERRORTEXT_checkMemBlock_UNDERFLOW,
     248                   PS_ERRORTEXT_psMemory_UNDERFLOW,
    249249                   m->id);
    250250        return 1;
     
    252252    if (*(void **)((int8_t *) (m + 1) + m->userMemorySize) != P_PS_MEMMAGIC) {
    253253        psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,
    254                    PS_ERRORTEXT_checkMemBlock_OVERFLOW,
     254                   PS_ERRORTEXT_psMemory_OVERFLOW,
    255255                   m->id);
    256256        return 1;
  • trunk/psLib/src/sys/psString.c

    r1713 r1715  
    99 *  @author Eric Van Alst, MHPCC
    1010 *   
    11  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-09-08 00:09:06 $
     11 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-09-08 00:15:16 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4040        // Log error message and return NULL
    4141        psErrorMsg(ERRORNAME_PREFIX "psStringNCopy", PS_ERR_BAD_PARAMETER_VALUE, true,
    42                    PS_ERRORTEXT_psStringNCopy_NCHAR_NEGATIVE,
     42                   PS_ERRORTEXT_psString_NCHAR_NEGATIVE,
    4343                   nChar);
    4444        return NULL;
  • trunk/psLib/src/sysUtils/psMemory.c

    r1696 r1715  
    99*  @author Robert Lupton, Princeton University
    1010*
    11 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2004-09-07 19:05:07 $
     11*  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2004-09-08 00:15:16 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    104104    if (ptr->refCounter < 1) {
    105105        psErrorMsg(ERRORNAME_PREFIX "memProblemCallbackDefault", false, PS_ERR_MEMORY_CORRUPTION,
    106                    PS_ERRORTEXT_memProblemCallbackDefault_MULTIPLE_FREE,
     106                   PS_ERRORTEXT_psMemory_MULTIPLE_FREE,
    107107                   ptr->id, ptr->file, ptr->lineno, file, lineno);
    108108    }
     
    232232    if (m == NULL) {
    233233        psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,
    234                    PS_ERRORTEXT_checkMemBlock_NULL_BLOCK);
     234                   PS_ERRORTEXT_psMemory_NULL_BLOCK);
    235235        return 1;
    236236    }
     
    239239        // using an unreferenced block of memory, are you?
    240240        psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,
    241                    PS_ERRORTEXT_checkMemBlock_DEREF_USE,
     241                   PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE,
    242242                   m->id);
    243243        return 1;
     
    246246    if (m->startblock != P_PS_MEMMAGIC || m->endblock != P_PS_MEMMAGIC) {
    247247        psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,
    248                    PS_ERRORTEXT_checkMemBlock_UNDERFLOW,
     248                   PS_ERRORTEXT_psMemory_UNDERFLOW,
    249249                   m->id);
    250250        return 1;
     
    252252    if (*(void **)((int8_t *) (m + 1) + m->userMemorySize) != P_PS_MEMMAGIC) {
    253253        psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION,
    254                    PS_ERRORTEXT_checkMemBlock_OVERFLOW,
     254                   PS_ERRORTEXT_psMemory_OVERFLOW,
    255255                   m->id);
    256256        return 1;
  • trunk/psLib/src/sysUtils/psString.c

    r1713 r1715  
    99 *  @author Eric Van Alst, MHPCC
    1010 *   
    11  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-09-08 00:09:06 $
     11 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-09-08 00:15:16 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4040        // Log error message and return NULL
    4141        psErrorMsg(ERRORNAME_PREFIX "psStringNCopy", PS_ERR_BAD_PARAMETER_VALUE, true,
    42                    PS_ERRORTEXT_psStringNCopy_NCHAR_NEGATIVE,
     42                   PS_ERRORTEXT_psString_NCHAR_NEGATIVE,
    4343                   nChar);
    4444        return NULL;
  • trunk/psLib/src/sysUtils/psSysUtilsErrors.dat

    r1713 r1715  
    1717# Error Messages from psMemory.c:
    1818#
    19 checkMemBlock_NULL_BLOCK                       NULL memory block found.
    20 checkMemBlock_DEREF_USE                        Memory block %ld was freed but still used.
    21 checkMemBlock_UNDERFLOW                        Memory block %ld is corrupted; buffer underflow detected.
    22 checkMemBlock_OVERFLOW                         Memory block %ld is corrupted; buffer overflow detected.
    23 memProblemCallbackDefault_MULTIPLE_FREE        Block %ld allocated at %s:%d freed more than once at %s:%d.
     19psMemory_NULL_BLOCK                            NULL memory block found.
     20psMemory_DEREF_BLOCK_USE                       Memory block %ld was freed but still used.
     21psMemory_UNDERFLOW                             Memory block %ld is corrupted; buffer underflow detected.
     22psMemory_OVERFLOW                              Memory block %ld is corrupted; buffer overflow detected.
     23psMemory_MULTIPLE_FREE                         Block %ld allocated at %s:%d freed more than once at %s:%d.
    2424#
    2525# Error Messages from psString.c:
  • trunk/psLib/src/sysUtils/psSysUtilsErrors.h

    r1713 r1715  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-09-08 00:09:06 $
     9 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-09-08 00:15:16 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3535#define PS_ERRORTEXT_psLogSetDestination_UNSUPPORTED_PROTOCOL "Do not know how to handle the protocol '%s'."
    3636#define PS_ERRORTEXT_psLogSetFormat_UNKNOWN_KEY "Unknown logging keyword %c."
    37 #define PS_ERRORTEXT_checkMemBlock_NULL_BLOCK "NULL memory block found."
    38 #define PS_ERRORTEXT_checkMemBlock_DEREF_USE "Memory block %ld was freed but still used."
    39 #define PS_ERRORTEXT_checkMemBlock_UNDERFLOW "Memory block %ld is corrupted; buffer underflow detected."
    40 #define PS_ERRORTEXT_checkMemBlock_OVERFLOW "Memory block %ld is corrupted; buffer overflow detected."
    41 #define PS_ERRORTEXT_memProblemCallbackDefault_MULTIPLE_FREE "Block %ld allocated at %s:%d freed more than once at %s:%d."
     37#define PS_ERRORTEXT_psMemory_NULL_BLOCK "NULL memory block found."
     38#define PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE "Memory block %ld was freed but still used."
     39#define PS_ERRORTEXT_psMemory_UNDERFLOW "Memory block %ld is corrupted; buffer underflow detected."
     40#define PS_ERRORTEXT_psMemory_OVERFLOW "Memory block %ld is corrupted; buffer overflow detected."
     41#define PS_ERRORTEXT_psMemory_MULTIPLE_FREE "Block %ld allocated at %s:%d freed more than once at %s:%d."
    4242#define PS_ERRORTEXT_psString_NCHAR_NEGATIVE "Can not copy a negative number of characters (%d)."
    4343#define PS_ERRORTEXT_psTrace_NULL_SUBCOMPONENT "Sub-component %d of node %s in trace tree is NULL."
Note: See TracChangeset for help on using the changeset viewer.