Changeset 1716
- Timestamp:
- Sep 7, 2004, 2:19:21 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 4 edited
-
sys/psLogMsg.c (modified) (6 diffs)
-
sysUtils/psLogMsg.c (modified) (6 diffs)
-
sysUtils/psSysUtilsErrors.dat (modified) (2 diffs)
-
sysUtils/psSysUtilsErrors.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psLogMsg.c
r1713 r1716 12 12 * @author George Gusciora, MHPCC 13 13 * 14 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-09-08 00: 09:06$14 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-09-08 00:19:21 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 114 114 if (sscanf(dest, "%4s:%256s", protocol, location) < 2) { 115 115 psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_LOCATION_INVALID, 116 PS_ERRORTEXT_psLog SetDestination_DESTINATION_MALFORMED,116 PS_ERRORTEXT_psLogMsg_DESTINATION_MALFORMED, 117 117 dest); 118 118 return false; … … 135 135 } 136 136 psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_LOCATION_INVALID, 137 PS_ERRORTEXT_psLog SetDestination_DEST_LOCATION_INVALID,137 PS_ERRORTEXT_psLogMsg_DEST_LOCATION_INVALID, 138 138 location); 139 139 return 1; … … 143 143 if (file == NULL) { 144 144 psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_IO, 145 PS_ERRORTEXT_psLog SetDestination_OPEN_FILE_FAILED,145 PS_ERRORTEXT_psLogMsg_OPEN_FILE_FAILED, 146 146 location); 147 147 return false; … … 155 155 156 156 psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_LOCATION_INVALID, 157 PS_ERRORTEXT_psLog SetDestination_UNSUPPORTED_PROTOCOL,157 PS_ERRORTEXT_psLogMsg_UNSUPPORTED_PROTOCOL, 158 158 protocol); 159 159 return false; … … 219 219 default: 220 220 psErrorMsg(ERRORNAME_PREFIX "psLogSetFormat", true, PS_ERR_BAD_PARAMETER_VALUE, 221 PS_ERRORTEXT_psLog SetFormat_UNKNOWN_KEY, *ptr);221 PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY, *ptr); 222 222 break; 223 223 } -
trunk/psLib/src/sysUtils/psLogMsg.c
r1713 r1716 12 12 * @author George Gusciora, MHPCC 13 13 * 14 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-09-08 00: 09:06$14 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-09-08 00:19:21 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 114 114 if (sscanf(dest, "%4s:%256s", protocol, location) < 2) { 115 115 psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_LOCATION_INVALID, 116 PS_ERRORTEXT_psLog SetDestination_DESTINATION_MALFORMED,116 PS_ERRORTEXT_psLogMsg_DESTINATION_MALFORMED, 117 117 dest); 118 118 return false; … … 135 135 } 136 136 psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_LOCATION_INVALID, 137 PS_ERRORTEXT_psLog SetDestination_DEST_LOCATION_INVALID,137 PS_ERRORTEXT_psLogMsg_DEST_LOCATION_INVALID, 138 138 location); 139 139 return 1; … … 143 143 if (file == NULL) { 144 144 psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_IO, 145 PS_ERRORTEXT_psLog SetDestination_OPEN_FILE_FAILED,145 PS_ERRORTEXT_psLogMsg_OPEN_FILE_FAILED, 146 146 location); 147 147 return false; … … 155 155 156 156 psErrorMsg(ERRORNAME_PREFIX "psLogSetDestination", true, PS_ERR_LOCATION_INVALID, 157 PS_ERRORTEXT_psLog SetDestination_UNSUPPORTED_PROTOCOL,157 PS_ERRORTEXT_psLogMsg_UNSUPPORTED_PROTOCOL, 158 158 protocol); 159 159 return false; … … 219 219 default: 220 220 psErrorMsg(ERRORNAME_PREFIX "psLogSetFormat", true, PS_ERR_BAD_PARAMETER_VALUE, 221 PS_ERRORTEXT_psLog SetFormat_UNKNOWN_KEY, *ptr);221 PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY, *ptr); 222 222 break; 223 223 } -
trunk/psLib/src/sysUtils/psSysUtilsErrors.dat
r1715 r1716 9 9 # Error Messages from psLogMsg.c: 10 10 # 11 psLog SetDestination_DESTINATION_MALFORMEDThe specified destination, %s, is malformed.12 psLog SetDestination_DEST_LOCATION_INVALIDThe location, %s, for protocol 'dest' is invalid.13 psLog SetDestination_OPEN_FILE_FAILEDCould not open file '%s' for output.14 psLog SetDestination_UNSUPPORTED_PROTOCOLDo not know how to handle the protocol '%s'.15 psLog SetFormat_UNKNOWN_KEYUnknown logging keyword %c.11 psLogMsg_DESTINATION_MALFORMED The specified destination, %s, is malformed. 12 psLogMsg_DEST_LOCATION_INVALID The location, %s, for protocol 'dest' is invalid. 13 psLogMsg_OPEN_FILE_FAILED Could not open file '%s' for output. 14 psLogMsg_UNSUPPORTED_PROTOCOL Do not know how to handle the protocol '%s'. 15 psLogMsg_UNKNOWN_KEY Unknown logging keyword %c. 16 16 # 17 17 # Error Messages from psMemory.c: 18 18 # 19 psMemory_NULL_BLOCK NULL memory block found.20 psMemory_DEREF_BLOCK_USE Memory block %ld was freed but still used.21 psMemory_UNDERFLOW Memory block %ld is corrupted; buffer underflow detected.22 psMemory_OVERFLOW Memory block %ld is corrupted; buffer overflow detected.23 psMemory_MULTIPLE_FREE Block %ld allocated at %s:%d freed more than once at %s:%d.19 psMemory_NULL_BLOCK NULL memory block found. 20 psMemory_DEREF_BLOCK_USE Memory block %ld was freed but still used. 21 psMemory_UNDERFLOW Memory block %ld is corrupted; buffer underflow detected. 22 psMemory_OVERFLOW Memory block %ld is corrupted; buffer overflow detected. 23 psMemory_MULTIPLE_FREE Block %ld allocated at %s:%d freed more than once at %s:%d. 24 24 # 25 25 # Error Messages from psString.c: … … 29 29 # Error Messages from psTrace.c: 30 30 # 31 psTrace_NULL_SUBCOMPONENT Sub-component %d of node %s in trace tree is NULL.32 psTrace_NULL_TRACETREE Function %s called on a NULL trace level tree.33 psTrace_ADD_NULL_COMPONENT Failed to add null component to trace tree.34 psTrace_MALFORMED_COMPONENT_NAME Failed to add '%s' to the root component tree; component must start with '.'.35 psTrace_FAILED_TO_ADD_COMPONENT Failed to set trace level (%d) to '%s'.31 psTrace_NULL_SUBCOMPONENT Sub-component %d of node %s in trace tree is NULL. 32 psTrace_NULL_TRACETREE Function %s called on a NULL trace level tree. 33 psTrace_ADD_NULL_COMPONENT Failed to add null component to trace tree. 34 psTrace_MALFORMED_COMPONENT_NAME Failed to add '%s' to the root component tree; component must start with '.'. 35 psTrace_FAILED_TO_ADD_COMPONENT Failed to set trace level (%d) to '%s'. -
trunk/psLib/src/sysUtils/psSysUtilsErrors.h
r1715 r1716 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-09-08 00:1 5:16$9 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-09-08 00:19:21 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 31 31 //~Start #define PS_ERRORTEXT_$1 "$2" 32 #define PS_ERRORTEXT_psLog SetDestination_DESTINATION_MALFORMED "The specified destination, %s, is malformed."33 #define PS_ERRORTEXT_psLog SetDestination_DEST_LOCATION_INVALID "The location, %s, for protocol 'dest' is invalid."34 #define PS_ERRORTEXT_psLog SetDestination_OPEN_FILE_FAILED "Could not open file '%s' for output."35 #define PS_ERRORTEXT_psLog SetDestination_UNSUPPORTED_PROTOCOL "Do not know how to handle the protocol '%s'."36 #define PS_ERRORTEXT_psLog SetFormat_UNKNOWN_KEY "Unknown logging keyword %c."32 #define PS_ERRORTEXT_psLogMsg_DESTINATION_MALFORMED "The specified destination, %s, is malformed." 33 #define PS_ERRORTEXT_psLogMsg_DEST_LOCATION_INVALID "The location, %s, for protocol 'dest' is invalid." 34 #define PS_ERRORTEXT_psLogMsg_OPEN_FILE_FAILED "Could not open file '%s' for output." 35 #define PS_ERRORTEXT_psLogMsg_UNSUPPORTED_PROTOCOL "Do not know how to handle the protocol '%s'." 36 #define PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY "Unknown logging keyword %c." 37 37 #define PS_ERRORTEXT_psMemory_NULL_BLOCK "NULL memory block found." 38 38 #define PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE "Memory block %ld was freed but still used."
Note:
See TracChangeset
for help on using the changeset viewer.
