Changeset 8232 for trunk/psLib/src/sys/psTrace.c
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
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/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.
