Changeset 8232 for trunk/psLib/src/sys
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 7 edited
-
. (modified) (1 prop)
-
sys/psConfigure.c (modified) (6 diffs)
-
sys/psErrorCodes.c.in (modified) (2 diffs)
-
sys/psLogMsg.c (modified) (4 diffs)
-
sys/psMemory.c (modified) (8 diffs)
-
sys/psString.c (modified) (3 diffs)
-
sys/psTrace.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src
- Property svn:ignore
-
old new 10 10 libpslib.la.temp 11 11 config.h.in 12 psErrorText.h13 12 *.bb 14 13 *.bbg
-
- Property svn:ignore
-
trunk/psLib/src/sys/psConfigure.c
r7646 r8232 13 13 * @author Robert DeSonia, MHPCC 14 14 * 15 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $16 * @date $Date: 2006-0 6-23 01:59:15$15 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2006-08-08 23:32:23 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 28 28 #include "psError.h" 29 29 #include "psConfigure.h" 30 #include "psErrorText.h" 30 31 31 #include "config.h" 32 32 … … 98 98 if (!p_psTimeInit(timeConfig)) { 99 99 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 100 PS_ERRORTEXT_psConfigure_INITIALIZATION_FAILED, "psTime");100 _("Failed to initialize %s."), "psTime"); 101 101 return; 102 102 } … … 104 104 if (!p_psEOCInit()) { 105 105 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 106 PS_ERRORTEXT_psConfigure_INITIALIZATION_FAILED, "psEOC");106 _("Failed to initialize %s."), "psEOC"); 107 107 return; 108 108 } … … 125 125 if (!p_psTimeFinalize()) { 126 126 psError(PS_ERR_UNKNOWN, false, 127 PS_ERRORTEXT_psConfigure_FINALIZATION_FAILED, "psTime");127 _("Failed to finalize %s."), "psTime"); 128 128 return; 129 129 } … … 132 132 if (!p_psEOCFinalize()) { 133 133 psError(PS_ERR_UNKNOWN, false, 134 PS_ERRORTEXT_psConfigure_FINALIZATION_FAILED, "psEOC");134 _("Failed to finalize %s."), "psEOC"); 135 135 return; 136 136 } -
trunk/psLib/src/sys/psErrorCodes.c.in
r7967 r8232 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-0 7-25 01:27:48$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-08-08 23:32:23 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 20 20 #include "psMemory.h" 21 21 22 #include "psErrorText.h" 22 23 23 24 24 static psErrorDescription staticErrorCodes[] = { -
trunk/psLib/src/sys/psLogMsg.c
r8098 r8232 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1. 59$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-08-0 3 03:26:28$13 * @version $Revision: 1.60 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-08-08 23:32:23 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 36 36 #include "psString.h" 37 37 38 #include "psErrorText.h" 38 39 39 40 40 #define MIN_LOG_LEVEL 0 … … 165 165 default: 166 166 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 167 PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY, *ptr);167 _("Unknown logging keyword %c."), *ptr); 168 168 return false; 169 169 } … … 210 210 211 211 if (fileD == 0) { 212 psError(PS_ERR_IO, true, PS_ERRORTEXT_psLogMsg_OPEN_FILE_FAILED,212 psError(PS_ERR_IO, true, _("Could not open file '%s' for output."), 213 213 location); 214 214 psFree(protocolLocation); -
trunk/psLib/src/sys/psMemory.c
r7901 r8232 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.7 4$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-0 7-14 02:26:25$10 * @version $Revision: 1.75 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-08-08 23:32:23 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 33 33 #include "psLine.h" 34 34 #include "psRegion.h" 35 #include "psErrorText.h" 35 36 36 37 37 #define P_PS_MEMMAGIC (psPtr )0xdeadbeef // Magic number in psMemBlock header … … 126 126 if (ptr->refCounter < 1) { 127 127 psError(PS_ERR_MEMORY_CORRUPTION, false, 128 PS_ERRORTEXT_psMemory_MULTIPLE_FREE,128 _("Block %lu, allocated at %s:%d, freed multiple times at %s:%d."), 129 129 (unsigned long)ptr->id, ptr->file, ptr->lineno, file, lineno); 130 130 } … … 148 148 if (m == NULL) { 149 149 psError(PS_ERR_MEMORY_CORRUPTION, true, 150 PS_ERRORTEXT_psMemory_NULL_BLOCK);150 _("NULL memory block found.")); 151 151 return 1; 152 152 } … … 155 155 // using an unreferenced block of memory, are you? 156 156 psError(PS_ERR_MEMORY_CORRUPTION, true, 157 PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE,157 _("Memory block %lu was freed but still being used."), 158 158 (unsigned long)m->id); 159 159 return 1; … … 162 162 if (m->startblock != P_PS_MEMMAGIC || m->endblock != P_PS_MEMMAGIC) { 163 163 psError(PS_ERR_MEMORY_CORRUPTION, true, 164 PS_ERRORTEXT_psMemory_UNDERFLOW,164 _("Memory block %lu is corrupted; buffer underflow detected."), 165 165 (unsigned long)m->id); 166 166 return 1; … … 168 168 if (*(psPtr *)((int8_t *) (m + 1) + m->userMemorySize) != P_PS_MEMMAGIC) { 169 169 psError(PS_ERR_MEMORY_CORRUPTION, true, 170 PS_ERRORTEXT_psMemory_OVERFLOW,170 _("Memory block %lu is corrupted; buffer overflow detected."), 171 171 (unsigned long)m->id); 172 172 return 1; … … 506 506 psMemBlock* ptr = ((psMemBlock* ) vptr) - 1; 507 507 508 psAbort(__func__, PS_ERRORTEXT_psMemory_MULTIPLE_FREE,508 psAbort(__func__,_("Block %lu, allocated at %s:%d, freed multiple times at %s:%d."), 509 509 (unsigned long)ptr->id, ptr->file, ptr->lineno, filename, lineno); 510 510 } -
trunk/psLib/src/sys/psString.c
r7912 r8232 13 13 * @author David Robbins, MHPCC 14 14 * 15 * @version $Revision: 1. 39$ $Name: not supported by cvs2svn $16 * @date $Date: 2006-0 7-15 02:50:51$15 * @version $Revision: 1.40 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2006-08-08 23:32:23 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 28 28 #include "psAbort.h" 29 29 30 #include "psErrorText.h" 30 31 31 32 32 static void stringFree(psString string) … … 78 78 // Log error message and return NULL 79 79 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 80 PS_ERRORTEXT_psString_NCHAR_NEGATIVE,80 _("Can not copy a negative number of characters (%d)."), 81 81 nChar); 82 82 return NULL; -
trunk/psLib/src/sys/psTrace.c
r7571 r8232 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.6 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-0 6-15 00:22:54$11 * @version $Revision: 1.65 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-08-08 23:32:23 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 51 51 #include "psLogMsg.h" 52 52 53 #include "psErrorText.h" 53 54 54 55 55 static p_psComponent* cRoot = NULL; // The root of the trace component … … 132 132 if (NULL == currentNode->subcomp[i]) { 133 133 psLogMsg("p_psTraceReset", PS_LOG_WARN, 134 PS_ERRORTEXT_psTrace_NULL_SUBCOMPONENT,134 _("Sub-component %d of node %s in trace tree is NULL."), 135 135 i, currentNode->name); 136 136 } else { … … 165 165 if (strcmp("", addNodeName) == 0) { 166 166 psError(PS_ERR_BAD_PARAMETER_NULL,true, 167 PS_ERRORTEXT_psTrace_ADD_NULL_COMPONENT);167 _("Failed to add null component to trace tree.")); 168 168 return false; 169 169 } … … 177 177 if (addNodeName[0] != '.') { 178 178 psError(PS_ERR_BAD_PARAMETER_VALUE,true, 179 PS_ERRORTEXT_psTrace_MALFORMED_COMPONENT_NAME,179 _("Failed to add '%s' to the root component tree; component must start with '.'."), 180 180 addNodeName); 181 181 return false; … … 274 274 if ( !componentAdd(compName, level) ) { 275 275 psError(PS_ERR_UNKNOWN, false, 276 PS_ERRORTEXT_psTrace_FAILED_TO_ADD_COMPONENT,276 _("Failed to set trace level (%d) to '%s'."), 277 277 level, 278 278 compName); … … 346 346 if (NULL == currentNode->subcomp[i]) { 347 347 psLogMsg("p_psTraceReset", PS_LOG_WARN, 348 PS_ERRORTEXT_psTrace_NULL_SUBCOMPONENT,348 _("Sub-component %d of node %s in trace tree is NULL."), 349 349 i, currentNode->name); 350 350 } … … 504 504 if (NULL == comp) { 505 505 psError(PS_ERR_BAD_PARAMETER_NULL, true, 506 PS_ERRORTEXT_psTrace_NULL_TRACETREE,506 _("Function %s called on a NULL trace level tree."), 507 507 __func__); 508 508 return; … … 705 705 default: 706 706 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 707 PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY, *ptr);707 _("Unknown logging keyword %c."), *ptr); 708 708 return false; 709 709 }
Note:
See TracChangeset
for help on using the changeset viewer.
